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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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. |