All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
Edge

public interface ConstEdge extends ConstJoltPhysicsObject
Read-only access to an Edge. (native type: const SoftBodySharedSettings::Edge)
  • 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)