ToPosition(Vector2)
Transform a 2D PhysicsWorld position to a 3D custom world-space position.
읽는 시간 1분최근 업데이트: 한 달 전
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. |