hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
60 lines (29 loc) • 951 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [PlayerCamera](./server.playercamera.md) > [setViewModelYawsWithCamera](./server.playercamera.setviewmodelyawswithcamera.md)
## PlayerCamera.setViewModelYawsWithCamera() method
Sets whether the view model yaws left/right with the camera orientation.
**Signature:**
```typescript
setViewModelYawsWithCamera(viewModelYawsWithCamera: boolean): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
viewModelYawsWithCamera
</td><td>
boolean
</td><td>
Whether the view model should yaw with the camera.
\*\*Category:\*\* Players
</td></tr>
</tbody></table>
**Returns:**
void
## Remarks
Useful for first-person view models to rotate when looking left/right.