# ToRotationFast3D

> Transform a 2D angle into a 3D rotation using the selected transform plane and the custom transform plane (Fast). The transformation is fast because the rotation is simplified by the fact that only a single axis of rotation is handled. All other axis rotations are reset to zero.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## ToRotationFast3D(float, TransformPlane, TransformPlaneCustom)

Transform a 2D angle into a 3D rotation using the selected transform plane and the custom transform plane (Fast). The transformation is fast because the rotation is simplified by the fact that only a single axis of rotation is handled. All other axis rotations are reset to zero.

```csharp
public static Quaternion ToRotationFast3D(float angle, PhysicsWorld.TransformPlane transformPlane, in PhysicsWorld.TransformPlaneCustom transformPlaneCustom)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[TransformPlane]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplane)): The transform plane to use.**** (\[TransformPlaneCustom]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplanecustom)): The custom transform plane (if required).

### Returns

| Type                                                                    | Description               |
| ----------------------------------------------------------------------- | ------------------------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) | The transformed rotation. |

## ToRotationFast3D(float, TransformPlane)

Transform a 2D angle into a 3D rotation using the selected transform plane (Fast). The transformation is fast because the rotation is simplified by the fact that only a single axis of rotation is handled. All other axis rotations are reset to zero.

```csharp
public static Quaternion ToRotationFast3D(float angle, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[TransformPlane]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplane)): The transform plane to use.

### Returns

| Type                                                                    | Description               |
| ----------------------------------------------------------------------- | ------------------------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) | The transformed rotation. |

## ToRotationFast3D(float, PhysicsWorld)

Transform a 2D angle into a 3D rotation using the specified world's transform plane (Fast). The transformation is fast because the rotation is simplified by the fact that only a single axis of rotation is handled. All other axis rotations are reset to zero.

```csharp
public static Quaternion ToRotationFast3D(float angle, PhysicsWorld world)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[PhysicsWorld]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld)): The world whose transform plane is used.

### Returns

| Type                                                                    | Description               |
| ----------------------------------------------------------------------- | ------------------------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) | The transformed rotation. |
