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
Read-only access to a
TwoBodyConstraint
. (native type: const
TwoBodyConstraint)-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstConstraint
getConstraintPriority, getConstraintSettings, getEnabled, getNumPositionStepsOverride, getNumVelocityStepsOverride, getSubType, getType
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
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
-