hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 1.04 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Block](./server.block.md) > [getNeighborGlobalCoordinateFromHitPoint](./server.block.getneighborglobalcoordinatefromhitpoint.md)
## Block.getNeighborGlobalCoordinateFromHitPoint() method
Gets the most adjacent neighbor global coordinate of this block based on a relative hit point, typically from a raycast.
**Signature:**
```typescript
getNeighborGlobalCoordinateFromHitPoint(hitPoint: Vector3Like): Vector3Like;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
hitPoint
</td><td>
[Vector3Like](./server.vector3like.md)
</td><td>
The hit point on this block to get the neighbor coordinate from.
</td></tr>
</tbody></table>
**Returns:**
[Vector3Like](./server.vector3like.md)
A neighbor global coordinate of this block based on the hit point.