FromShape(PhysicsShape, Vector2)
Create a CastShapeInput the specified world shape. The geometry will automatically be translated into world-space.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsQuery.CastShapeInput FromShape(PhysicsShape shape, Vector2 translation)
Parameters
Returns
Type | Description |
|---|---|
| CastShapeInput |