Interface ConstContactManifold

All Superinterfaces:
Comparable<ConstJoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
ContactManifold

public interface ConstContactManifold extends ConstJoltPhysicsObject
Read-only access to a ContactManifold. (native type: const ContactManifold)
  • Method Details

    • getBaseOffset

      RVec3 getBaseOffset()
      Return the location from which all contact points are measured. The manifold is unaffected.
      Returns:
      a new location vector
    • getPenetrationDepth

      float getPenetrationDepth()
      Return the penetration depth: the distance to move body 2 out of collision. The manifold is unaffected.
      Returns:
      the signed distance (negative for a speculative contact)
    • getSubShapeId1

      SubShapeId getSubShapeId1()
      Return the ID of the first subshape that formed the manifold. The manifold is unaffected.
      Returns:
      a new object
    • getSubShapeId2

      SubShapeId getSubShapeId2()
      Return the ID of the 2nd subshape that formed the manifold. The manifold is unaffected.
      Returns:
      a new object
    • getWorldSpaceNormal

      Vec3 getWorldSpaceNormal()
      Return the normal: the direction to move body 2 out of collision. The manifold is unaffected.
      Returns:
      a new direction vector (in system coordinates)