Interface ConstRodStretchShear

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

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