ShapeTimeOfImpact(TimeOfImpactInput)
Calculate the upper bound on time before two shape proxies penetrate i.e. the time-of-impact. Time is represented as a fraction in the range [0, maxInterval]. This uses a swept separating axis and may miss some intermediate, non-tunneling collisions.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsQuery.TimeOfImpactResult ShapeTimeOfImpact(PhysicsQuery.TimeOfImpactInput toiInput)
Parameters
The input describing the shapes and how they should move.
Returns
Type | Description |
|---|---|
| TimeOfImpactResult | The time of impact result. |