Interface ConstContactManifold
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
ContactManifold
Read-only access to a
ContactManifold. (native type: const
ContactManifold)-
Method Summary
Modifier and TypeMethodDescriptionReturn the location from which all contact points are measured.floatReturn the penetration depth: the distance to move body 2 out of collision.Return the ID of the first subshape that formed the manifold.Return the ID of the 2nd subshape that formed the manifold.Return the normal: the direction to move body 2 out of collision.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
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)
-