Interface ConstRodStretchShear
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
RodStretchShear
Read-only access to a
RodStretchShear. (native type:
const SoftBodySharedSettings::RodStretchShear)-
Method Summary
Modifier and TypeMethodDescriptionReturn the Bishop frame of the rod.floatReturn the inverse of the spring's stiffness.floatReturn the inverse mass of the rod.floatReturn the length of the rod.intgetVertex(int indexInRod) Return the mesh vertex at the specified end.Methods inherited from interface java.lang.Comparable
compareToMethods 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)
-