hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
14 lines (8 loc) • 643 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) > [facesCameraWhenIdle](./server.defaultplayerentitycontroller.facescamerawhenidle.md)
## DefaultPlayerEntityController.facesCameraWhenIdle property
Whether the entity rotates to face the camera direction when idle. When `true`<!-- -->, the entity always faces the camera direction. When `false`<!-- -->, the entity only rotates while actively moving.
**Signature:**
```typescript
facesCameraWhenIdle: boolean;
```