<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [setDirectionalLightPosition](./server.world.setdirectionallightposition.md)

## World.setDirectionalLightPosition() method

Sets the position the world's directional light originates from.

**Signature:**

```typescript
setDirectionalLightPosition(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 position in the world.


</td></tr>
</tbody></table>
**Returns:**

void

