UNPKG

hytopia

Version:

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

54 lines (26 loc) 760 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; [copy](./server.quaternion.copy.md) ## Quaternion.copy() method Copies the components of a `QuaternionLike` object to the current quaternion. **Signature:** ```typescript copy(quaternion: Quaternion): Quaternion; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> quaternion </td><td> [Quaternion](./server.quaternion.md) </td><td> </td></tr> </tbody></table> **Returns:** [Quaternion](./server.quaternion.md) The current quaternion.