Class RackAndPinionConstraint

All Implemented Interfaces:
ConstConstraint, ConstJoltPhysicsObject, ConstTwoBodyConstraint, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>

public class RackAndPinionConstraint extends TwoBodyConstraint
A TwoBodyConstraint that links the rotation of the first body to the linear motion of the 2nd body.
  • Method Details

    • setConstraints

      public void setConstraints(ConstConstraint pinion, ConstConstraint rack)
      Specify the constraints for each body (optional).
      Parameters:
      pinion - the desired hinge constraint for the pinion (not null, unaffected)
      rack - the desired slider constraint for the rack (not null, unaffected)