Interface ConstVolume
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
Volume
Read-only access to an
Volume
. (native type:
const SoftBodySharedSettings::Volume
)-
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the inverse of the volume's stiffness.float
Return the rest size of the volume.int
getVertex
(int indexInVolume) Return the mesh vertex at the specified corner.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 volume's stiffness. The volume is unaffected.- Returns:
- the compliance value
-
getSixRestVolume
float getSixRestVolume()Return the rest size of the volume. The volume is unaffected.- Returns:
- 6 times the rest volume of the tetrahedron (in cubic meters)
-
getVertex
int getVertex(int indexInVolume) Return the mesh vertex at the specified corner. The volume is unaffected.- Parameters:
indexInVolume
- which corner of the volume (0 or 1 or 2 or 3)- Returns:
- the mesh index of the vertex (≥0)
-