CastShape(CastShapeInput, out PhysicsShape)
Calculate if a cast shape intersects the chain. See PhysicsQuery.CastShapeInput and PhysicsQuery.CastResult.
Read time 1 minuteLast updated 12 days ago
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. |