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