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

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