GetLocalVector(Vector2)
Gets a local vector on a body given a world vector.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 GetLocalVector(Vector2 worldVector)
Parameters
The world vector to transform.
Returns
Type | Description |
|---|---|
| Vector2 | The local vector relative to the body. |