# RotateZ(float)

> Returns a RigidTransform that rotates around the z-axis by a given number of radians.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public static RigidTransform RotateZ(float angle)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The clockwise rotation angle when looking along the z-axis towards the origin in radians.

### Returns

| Type                                                                                  | Description                                                          |
| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [RigidTransform](/engine/6000.5/script-reference/unity/mathematics/rigidtransform.md) | The RigidTransform of rotating around the z-axis by the given angle. |
