# ToRotationSlow3D

> Transform a 2D angle into a 3D rotation using the selected transform plane and the custom transform plane (Slow). The transformation is slower because the rotation is more complex due to the fact that changing a single axis of rotation requires it to not affect any other axis rotations.

## Definition

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

## ToRotationSlow3D(float, Quaternion, TransformPlane, TransformPlaneCustom)

Transform a 2D angle into a 3D rotation using the selected transform plane and the custom transform plane (Slow). The transformation is slower because the rotation is more complex due to the fact that changing a single axis of rotation requires it to not affect any other axis rotations.

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

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[Quaternion]\(/engine/6000.7/script-reference/unityengine/quaternion)): The 3D rotation used as a reference.**** (\[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. |

## ToRotationSlow3D(float, Quaternion, TransformPlane)

Transform a 2D angle into a 3D rotation using the selected transform plane (Slow). The transformation is slower because the rotation is more complex due to the fact that changing a single axis of rotation requires it to not affect any other axis rotations.

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

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[Quaternion]\(/engine/6000.7/script-reference/unityengine/quaternion)): The 3D rotation used as a reference.**** (\[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. |

## ToRotationSlow3D(float, Transform, PhysicsWorld)

Transform a 2D angle into a 3D rotation using the specified world's transform plane, keeping the rotation off the plane from a Transform (Slow).

```csharp
public static Quaternion ToRotationSlow3D(float angle, Transform reference, PhysicsWorld world)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[Transform]\(/engine/6000.7/script-reference/unityengine/transform)): The Transform whose world rotation is used as a reference.**** (\[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. |

## ToRotationSlow3D(float, Quaternion, PhysicsWorld)

Transform a 2D angle into a 3D rotation using the specified world's transform plane (Slow). The transformation is slower because the rotation is more complex due to the fact that changing a single axis of rotation requires it to not affect any other axis rotations.

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

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D angle to transform in radians.**** (\[Quaternion]\(/engine/6000.7/script-reference/unityengine/quaternion)): The 3D rotation used as a reference.**** (\[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. |
