/** Set/get the damping ratio (dimensionless). */ public float getDampingRatio () { return joint.getDampingRatio(); } }
/** Get the gear ratio. */ public float getRatio () { return joint.getRatio(); } }
/** Get the pulley ratio. */ public float getRatio () { return joint.getRatio(); } }
@Override public boolean solvePositionConstraints(SolverData step) { return constrainEdges(step.positions); }
/** Set the motor speed in radians per second. */ public void setMotorSpeed (float speed) { motorSpeed = speed; joint.setMotorSpeed(speed); }
/** Get the motor speed, usually in meters per second. */ public float getMotorSpeed () { return joint.getMotorSpeed(); }
/** Get the maximum friction torque in N*m. */ public float getMaxTorque () { return joint.getMaxTorque(); } }
/** Set/get damping ratio. */ public float getDampingRatio () { return joint.getDampingRatio(); } }
/** Set/get the frequency in Hertz. */ public float getFrequency () { return joint.getFrequency(); }
/** Get the current joint translation, usually in meters. */ public float getJointTranslation () { return joint.getJointTranslation(); }
/** Enable/disable the joint limit. */ public void enableLimit (boolean flag) { joint.enableLimit(flag); }
/** Set/get frequency in Hz. */ public float getFrequency () { return joint.getFrequency(); }
/** Set the joint limits in radians. * @param upper */ public void setLimits (float lower, float upper) { joint.setLimits(lower, upper); }
/** Set the gear ratio. */ public void setRatio (float ratio) { joint.setRatio(ratio); }
/** Set/Get the maximum motor force, usually in N-m. */ public void setMaxMotorTorque (float torque) { joint.setMaxMotorTorque(torque); }
/** Get the current motor torque given the inverse time step, usually in N-m. */ public float getMotorTorque (float invDt) { return joint.getMotorTorque(invDt); }
/** Set/get the damping ratio (dimensionless). */ public void setDampingRatio (float ratio) { joint.setDampingRatio(ratio); }
/** Set/get the maximum force in Newtons. */ public void setMaxForce (float force) { joint.setMaxForce(force); }
/** Get the reaction torque on body2 in N*m. */ public float getReactionTorque (float inv_dt) { return joint.getReactionTorque(inv_dt); }
/** Short-cut function to determine if either body is inactive. */ public boolean isActive () { return joint.isActive(); }