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
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Chunk](./server.chunk.md) > [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.