UNPKG

hytopia

Version:

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

56 lines (27 loc) 896 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Chunk](./server.chunk.md) &gt; [globalCoordinateToOriginCoordinate](./server.chunk.globalcoordinatetoorigincoordinate.md) ## Chunk.globalCoordinateToOriginCoordinate() method Convert a global coordinate to an origin coordinate. **Signature:** ```typescript static globalCoordinateToOriginCoordinate(globalCoordinate: Vector3Like): Vector3Like; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> globalCoordinate </td><td> [Vector3Like](./server.vector3like.md) </td><td> The global coordinate to convert. </td></tr> </tbody></table> **Returns:** [Vector3Like](./server.vector3like.md) The origin coordinate.