CastShape(CastShapeInput)
Calculate if a cast shape intersects the geometry. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required. See PhysicsQuery.CastShapeInput and PhysicsQuery.CastResult.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly PhysicsQuery.CastResult CastShape(PhysicsQuery.CastShapeInput input)
Parameters
The cast shape input used to check for intersection.
Returns
Type | Description |
|---|---|
| CastResult | The results of the intersection test. |