UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

58 lines (28 loc) 932 B
<!-- 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; [setRotationInterpolationMs](./server.entity.setrotationinterpolationms.md) ## Entity.setRotationInterpolationMs() method Sets the interpolation time in milliseconds applied to rotation changes. **Signature:** ```typescript setRotationInterpolationMs(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_ROTATION_INTERPOLATION_MS` when spawned. \*\*Category:\*\* Entities </td></tr> </tbody></table> **Returns:** void