hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
58 lines (28 loc) • 1.01 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Entity](./server.entity.md) > [setModelAnimationsPlaybackRate](./server.entity.setmodelanimationsplaybackrate.md)
## Entity.setModelAnimationsPlaybackRate() method
Sets the playback rate of all animations on the entity's model.
**Signature:**
```typescript
setModelAnimationsPlaybackRate(playbackRate: number): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
playbackRate
</td><td>
number
</td><td>
The playback rate of the entity's model animations.
</td></tr>
</tbody></table>
**Returns:**
void
## Remarks
Defaults to 1. A positive value will play the animation forward, a negative value will play the animation in reverse. Any value may be used. You can make animations play faster by using larger values.