# ToRotation2D(Quaternion, TransformPlane)

> Transform a 3D rotation into a 2D angle using the selected transform plane.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static float ToRotation2D(Quaternion quaternion, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)
```

### Parameters

**** (\[Quaternion]\(/engine/6000.3/script-reference/unityengine/quaternion)): The 3D rotation to transform.**** (\[TransformPlane]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/transformplane)): The transform plane to use.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The transformed rotation in radians. |
