hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
21 lines (14 loc) • 533 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [RaycastHit](./server.raycasthit.md)
## RaycastHit type
A hit result from a raycast.
**Signature:**
```typescript
export type RaycastHit = {
hitBlock?: Block;
hitEntity?: Entity;
hitPoint: Vector3Like;
hitDistance: number;
};
```
**References:** [Block](./server.block.md)<!-- -->, [Entity](./server.entity.md)<!-- -->, [Vector3Like](./server.vector3like.md)