Struct ContactHitEvent
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Two shapes collided fast enough to be worth reporting.
public readonly record struct ContactHitEvent : IEquatable<ContactHitEvent>Implements
Inherited Members
Remarks
Raised only for shapes with hit events enabled, and only above the world's hit threshold. This is what impact sounds and damage should listen to.
Properties
- ApproachSpeed
-
Gets how fast the shapes were approaching, usually in metres per second.
- Normal
-
Gets the normal, pointing from the first shape to the second.
- Point
-
Gets the point of impact, midway between the two surfaces.
- ShapeA
-
Gets the first shape.
- ShapeB
-
Gets the second shape.
- UserMaterialIdA
-
Gets the user material identifier of the first shape.
- UserMaterialIdB
-
Gets the user material identifier of the second shape.