use of artisynth.core.mechmodels.FullPlanarJoint in project artisynth_core by artisynth.
the class FullPlanarJointDemo method build.
@Override
public void build(String[] args) throws IOException {
super.build(args);
MechModel mech = (MechModel) models().get("mech");
RigidBody lumbar1 = mech.rigidBodies().get("lumbar1");
// constrain to mid-sagittal plane: medio-lateral direction is in world y-axis
FullPlanarJoint planarJoint = new FullPlanarJoint(lumbar1, Vector3d.Y_UNIT);
mech.addBodyConnector(planarJoint);
}
Aggregations