Interface ConstEdge
- All Superinterfaces:
 AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
 Edge
Read-only access to an 
Edge. (native type:
 const SoftBodySharedSettings::Edge)- 
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the inverse of the spring's stiffness.floatReturn the rest length of the spring.intgetVertex(int indexInEdge) 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
- 
getCompliance
float getCompliance()Return the inverse of the spring's stiffness. The edge is unaffected.- Returns:
 - the compliance value
 
 - 
getRestLength
float getRestLength()Return the rest length of the spring. The edge is unaffected.- Returns:
 - the length (in meters)
 
 - 
getVertex
int getVertex(int indexInEdge) Return the mesh vertex at the specified end.- Parameters:
 indexInEdge- which end of the edge (0 or 1)- Returns:
 - the mesh index of the vertex (≥0)
 
 
 -