UNPKG

hytopia

Version:

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

54 lines (26 loc) 857 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [PlayerCamera](./server.playercamera.md) &gt; [setShoulderAngle](./server.playercamera.setshoulderangle.md) ## PlayerCamera.setShoulderAngle() method Only used in third-person mode. Sets the shoulder angle of the camera in degrees. A positive value shifts the camera to the right, a negative value shifts it to the left. **Signature:** ```typescript setShoulderAngle(shoulderAngle: number): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> shoulderAngle </td><td> number </td><td> The shoulder angle to set in degrees. </td></tr> </tbody></table> **Returns:** void