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분최근 업데이트: 한 달 전
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. |