Interface ConstTwoBodyConstraint

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstConstraint, ConstJoltPhysicsObject
All Known Implementing Classes:
ConeConstraint, DistanceConstraint, FixedConstraint, GearConstraint, HingeConstraint, PathConstraint, PointConstraint, PulleyConstraint, RackAndPinionConstraint, SixDofConstraint, SliderConstraint, SwingTwistConstraint, TwoBodyConstraint, TwoBodyConstraintRef

public interface ConstTwoBodyConstraint extends ConstConstraint
Read-only access to a TwoBodyConstraint. (native type: const TwoBodyConstraint)
  • Method Details

    • getBody1

      Body getBody1()
      Access the first body in the constraint. The constraint is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getBody2

      Body getBody2()
      Access the 2nd body in the constraint. The constraint is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getConstraintToBody1Matrix

      Mat44 getConstraintToBody1Matrix()
      Calculate the coordinate transform from constraint space to body 1. The constraint is unaffected.
      Returns:
      a new transform matrix
    • getConstraintToBody2Matrix

      Mat44 getConstraintToBody2Matrix()
      Calculate the coordinate transform from constraint space to body 2. The constraint is unaffected.
      Returns:
      a new transform matrix