UNPKG

hytopia

Version:

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

56 lines (27 loc) 727 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Quaternion](./server.quaternion.md) &gt; [rotateY](./server.quaternion.rotatey.md) ## Quaternion.rotateY() method Rotates the quaternion around the y-axis. **Signature:** ```typescript rotateY(angle: number): Quaternion; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> angle </td><td> number </td><td> The angle to rotate in degrees. </td></tr> </tbody></table> **Returns:** [Quaternion](./server.quaternion.md) The current quaternion.