ToPosition3D(Vector2, Vector3, TransformPlane)
Transform a 2D position into a 3D position using the selected transform plane.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public static Vector3 ToPosition3D(Vector2 position, Vector3 reference, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)
Parameters
The 2D position to transform.
The 3D position used as a reference.
The transform plane to use.
Returns
Type | Description |
|---|---|
| Vector3 | The transformed position. |