UNPKG

hytopia

Version:

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

56 lines (27 loc) 755 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix4](./server.matrix4.md) &gt; [translate](./server.matrix4.translate.md) ## Matrix4.translate() method Translates the current matrix by a vector. **Signature:** ```typescript translate(vector3: Vector3): Matrix4; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> vector3 </td><td> [Vector3](./server.vector3.md) </td><td> The vector to translate the current matrix by. </td></tr> </tbody></table> **Returns:** [Matrix4](./server.matrix4.md) The current matrix.