UNPKG

hytopia

Version:

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

72 lines (34 loc) 908 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; [setAxisAngle](./server.quaternion.setaxisangle.md) ## Quaternion.setAxisAngle() method Sets the current quaternion to the angle and rotation axis. **Signature:** ```typescript setAxisAngle(axis: Vector3, angle: number): Quaternion; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> axis </td><td> [Vector3](./server.vector3.md) </td><td> The axis to rotate around. </td></tr> <tr><td> angle </td><td> number </td><td> The angle to rotate in radians. </td></tr> </tbody></table> **Returns:** [Quaternion](./server.quaternion.md) The current quaternion.