<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [setPositionInterpolationMs](./server.entity.setpositioninterpolationms.md)

## Entity.setPositionInterpolationMs() method

Sets the interpolation time in milliseconds applied to position changes.

**Signature:**

```typescript
setPositionInterpolationMs(interpolationMs: number | undefined): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

interpolationMs


</td><td>

number \| undefined


</td><td>

The interpolation time in milliseconds to set.

\*\*Side effects:\*\* Emits `EntityEvent.SET_POSITION_INTERPOLATION_MS` when spawned.

\*\*Category:\*\* Entities


</td></tr>
</tbody></table>
**Returns:**

void

