ToRotation2D(Quaternion, TransformPlane)
Transform a 3D rotation into a 2D angle using the selected transform plane.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public static float ToRotation2D(Quaternion quaternion, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)
Parameters
The 3D rotation to transform.
The transform plane to use.
Returns
Type | Description |
|---|---|
| float | The transformed rotation in radians. |