<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Collider](./server.collider.md) &gt; [setRelativeRotation](./server.collider.setrelativerotation.md)

## Collider.setRelativeRotation() method

Sets the relative rotation of the collider to its parent rigid body or the world origin.

**Signature:**

```typescript
setRelativeRotation(rotation: QuaternionLike): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

rotation


</td><td>

[QuaternionLike](./server.quaternionlike.md)


</td><td>

The relative rotation of the collider.


</td></tr>
</tbody></table>
**Returns:**

void

## Remarks

Colliders can be added as a child of a rigid body, or to the world directly. This rotation is relative to the parent rigid body or the world origin.

