CastShape(CastShapeInput, out PhysicsShape)
Calculate if a cast shape intersects the chain. See PhysicsQuery.CastShapeInput and PhysicsQuery.CastResult.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
CastShape(CastShapeInput, PhysicsShape)
public PhysicsQuery.CastResult CastShape(PhysicsQuery.CastShapeInput input, out PhysicsShape chainSegmentShape)
Parameters
The cast shape input used to check for intersection.
A reference to the chain segment shape that the query found.
Returns
Type | Description |
|---|---|
| CastResult | The results of the intersection test. |