Search in sources :

Example 1 with TranslationalLimitMotor

use of com.jme3.bullet.joints.motors.TranslationalLimitMotor in project jmonkeyengine by jMonkeyEngine.

the class SixDofJoint method gatherMotors.

private void gatherMotors() {
    for (int i = 0; i < 3; i++) {
        RotationalLimitMotor rmot = new RotationalLimitMotor(((Generic6DofConstraint) constraint).getRotationalLimitMotor(i));
        rotationalMotors.add(rmot);
    }
    translationalMotor = new TranslationalLimitMotor(((Generic6DofConstraint) constraint).getTranslationalLimitMotor());
}
Also used : Generic6DofConstraint(com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint) TranslationalLimitMotor(com.jme3.bullet.joints.motors.TranslationalLimitMotor) RotationalLimitMotor(com.jme3.bullet.joints.motors.RotationalLimitMotor) Generic6DofConstraint(com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)

Aggregations

Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 RotationalLimitMotor (com.jme3.bullet.joints.motors.RotationalLimitMotor)1 TranslationalLimitMotor (com.jme3.bullet.joints.motors.TranslationalLimitMotor)1