Search in sources :

Example 1 with FullPlanarJoint

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);
}
Also used : MechModel(artisynth.core.mechmodels.MechModel) FullPlanarJoint(artisynth.core.mechmodels.FullPlanarJoint) RigidBody(artisynth.core.mechmodels.RigidBody)

Aggregations

FullPlanarJoint (artisynth.core.mechmodels.FullPlanarJoint)1 MechModel (artisynth.core.mechmodels.MechModel)1 RigidBody (artisynth.core.mechmodels.RigidBody)1