CastShapes(CastShapePairInput)
Cast two shape proxies against each other. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsQuery.CastResult CastShapes(PhysicsQuery.CastShapePairInput castShapePairInput)
Parameters
The input describing the shape proxies and how they should move.
Returns
Type | Description |
|---|---|
| CastResult | The cast result. |