Interface ConstRodBendTwist
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
RodBendTwist
Read-only access to an
RodBendTwist
. (native type:
const SoftBodySharedSettings::RodBendTwist
)-
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the inverse of the spring's stiffness.Return the Omega0 rotation of the constraint.int
getRod
(int indexInConstraint) Return the rod at the specified end.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getCompliance
float getCompliance()Return the inverse of the spring's stiffness. The constraint is unaffected.- Returns:
- the compliance value
-
getOmega0
Quat getOmega0()Return the Omega0 rotation of the constraint. The constraint is unaffected.- Returns:
- a new quaternion
-
getRod
int getRod(int indexInConstraint) Return the rod at the specified end. The constraint is unaffected.- Parameters:
indexInConstraint
- which end of the constraint (0 or 1)- Returns:
- the index of the rod (≥0)
-