Struct ConvexContact
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
Information about a single contact in a convex collidable pair. Convex collidable pairs share one surface basis across the manifold, since the contact surface is guaranteed to be a plane.
public struct ConvexContact
- Inherited Members
Fields
Depth
Penetration depth between the two collidables at this contact. Negative values represent separation.
public float Depth
Field Value
FeatureId
Id of the features involved in the collision that generated this contact. If a contact has the same feature id as in a previous frame, it is an indication that the same parts of the shape contributed to its creation. This is useful for carrying information from frame to frame.
public int FeatureId
Field Value
Offset
Offset from the position of collidable A to the contact position.
public Vector3 Offset