define local coordinates for btGeneric6DofSpring2Constraint
Posted: Wed Jan 18, 2017 1:15 pm
Hi,
I want to define a spring between two rigid bodies (one static and one dynamic). However, I want the axis of the spring to be rotated along the line connecting both rigid bodies. In this way, the spring stiffness will remain valid regardless of the rotation of the dynamic rigid body.
Does anyone know how can I define a local axis for btGeneric6DofSpring2Constraint?
Or should I update the orientation of the axis in any frame and pass it to btGeneric6DofSpring2Constraint? (if yes, how?)
Thanks
I want to define a spring between two rigid bodies (one static and one dynamic). However, I want the axis of the spring to be rotated along the line connecting both rigid bodies. In this way, the spring stiffness will remain valid regardless of the rotation of the dynamic rigid body.
Does anyone know how can I define a local axis for btGeneric6DofSpring2Constraint?
Or should I update the orientation of the axis in any frame and pass it to btGeneric6DofSpring2Constraint? (if yes, how?)
Thanks