Interface ConstRodStretchShear
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
RodStretchShear
Read-only access to an
RodStretchShear
. (native type:
const SoftBodySharedSettings::RodStretchShear
)-
Method Summary
Modifier and TypeMethodDescriptionReturn the Bishop frame of the rod.float
Return the inverse of the spring's stiffness.float
Return the inverse mass of the rod.float
Return the length of the rod.int
getVertex
(int indexInRod) Return the mesh vertex 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
-
getBishop
Quat getBishop()Return the Bishop frame of the rod. The rod is unaffected.- Returns:
- orientation of the rod
-
getCompliance
float getCompliance()Return the inverse of the spring's stiffness. The rod is unaffected.- Returns:
- the compliance value
-
getInvMass
float getInvMass()Return the inverse mass of the rod. The rod is unaffected.- Returns:
- the inverse of the mass (in 1/kilograms)
-
getLength
float getLength()Return the length of the rod. The rod is unaffected.- Returns:
- the length (in meters)
-
getVertex
int getVertex(int indexInRod) Return the mesh vertex at the specified end. The rod is unaffected.- Parameters:
indexInRod
- which end of the rod (0 or 1)- Returns:
- the mesh index of the vertex (≥0)
-