Documentation

Unity Engine


Unity Engine


ToPosition2D(Vector3, TransformPlane)

Transform a 3D position into a 2D position using the selected transform plane.
Read time 1 minuteLast updated a month ago

Definition

public static Vector2 ToPosition2D(Vector3 position, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)

Parameters

position

The 3D position to transform.

transformPlane

The transform plane to use.

Returns

Type

Description

Vector2The transformed position.