# AngleAxis(float, Vector3)

> Creates a rotation which rotates angle degrees around axis.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Quaternion AngleAxis(float angle, Vector3 axis)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)):&#x20;

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Quaternion](/engine/6000.0/script-reference/unityengine/quaternion.md) |             |

### Remarks

The rotation is counter-clockwise when looking from the origin along the axis of rotation. For more information, refer to [Rotation and Orientation in Unity](/engine/6000.0/manual/working-with-gameobjects/gameobject-fundamentals/rotation-orientation/quaternion-and-euler-rotations-in-unity.md). The magnitude of the axis parameter is not applied.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Sets the transform's current rotation to a new rotation that rotates 30 degrees around the y-axis(Vector3.up)
        transform.rotation = Quaternion.AngleAxis(30, Vector3.up);
    }
}
```
