PhysicsEvents.PreContinuousEvent
An event produced during the continuous collision stage when a fast-moving shape is predicted to hit another shape this step. The callback decides whether the shape is stopped at the predicted impact point or allowed to continue.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<PreContinuousEvent>
public readonly struct PhysicsEvents.PreContinuousEvent : IEquatable<PhysicsEvents.PreContinuousEvent>
Properties
Property | Description |
|---|---|
| normal | The surface normal at the predicted point of impact. |
| physicsWorld | The physics world both shapes are within. |
| point | The predicted point of impact in world space. |
| shapeA | One of the shapes involved in the event. |
| shapeB | The other shape involved in the event. |