<!-- 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; [setRelativePosition](./server.collider.setrelativeposition.md)

## Collider.setRelativePosition() method

Sets the position of the collider relative to its parent rigid body or the world origin.

**Signature:**

```typescript
setRelativePosition(position: Vector3Like): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

position


</td><td>

[Vector3Like](./server.vector3like.md)


</td><td>

The relative position 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 position is relative to the parent rigid body or the world origin.

