UNPKG

hytopia

Version:

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

56 lines (27 loc) 814 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; [blockIndexToLocalCoordinate](./server.chunk.blockindextolocalcoordinate.md) ## Chunk.blockIndexToLocalCoordinate() method Convert a block index to a local coordinate. **Signature:** ```typescript static blockIndexToLocalCoordinate(index: number): Vector3Like; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> index </td><td> number </td><td> The index of the block to convert. </td></tr> </tbody></table> **Returns:** [Vector3Like](./server.vector3like.md) The local coordinate of the block.