<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Block](./server.block.md) &gt; [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.

