ToPosition(Vector2)
Transform a 2D PhysicsWorld position to a 3D custom world-space position.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly Vector3 ToPosition(Vector2 position)
Parameters
The 2D position to transform.
Returns
Type | Description |
|---|---|
| Vector3 | The transformed 3D position. |