Skip to content

Why do I connect two OFFRFobjects with GenericJoint and they still separate in the simulation? #27

Discussion options

You must be logged in to vote

If you use a GenericJoint, it connects two rigid body markers. They need to have same orientation and position initially. If you want to connect them with different local frames, then you need to add a markerRotation at the GenericJoint (and possibly and offset in the joint).
I assume that you use the index2 solver: in this case, different initial orientation will lead to arbitrary solution. If you use generalized alpha, it would try to immediately rotate and move the bodies such that the two frames of the GenericJoint match (which may cause severe problems for the Newton solver).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@qiushi-Lee
Comment options

@jgerstmayr
Comment options

Answer selected by qiushi-Lee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants