I have a character made up with several bodies connected by revolute joints.
I'd like to be able to load different initial relative orientations (standing up/lying down, arms bent, etc). My plan was to create the character in a standard orientations, then loop through my joints updating child bodies's positions and orientations when loading a new character state (all velocities/angular velocities would be set to 0).
To update the bodies I was going to use setXForm with the new positions/orientations, but I'm not sure how to make sure the joints don't break. I was going to adjust the transforms so that the anchors were still lined up at the same world coordinates, but it looks like the joint will only return the anchor in global coordinates. Is that how the anchor points are stored internally?
Is this a reasonable approach? Is there a better way to handle this?
I'm using the java port, but I'm sure that's not a huge deal here.
Thanks!
I'd like to be able to load different initial relative orientations (standing up/lying down, arms bent, etc). My plan was to create the character in a standard orientations, then loop through my joints updating child bodies's positions and orientations when loading a new character state (all velocities/angular velocities would be set to 0).
To update the bodies I was going to use setXForm with the new positions/orientations, but I'm not sure how to make sure the joints don't break. I was going to adjust the transforms so that the anchors were still lined up at the same world coordinates, but it looks like the joint will only return the anchor in global coordinates. Is that how the anchor points are stored internally?
Is this a reasonable approach? Is there a better way to handle this?
I'm using the java port, but I'm sure that's not a huge deal here.
Thanks!