UNPKG

hytopia

Version:

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

16 lines (9 loc) 609 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [CollisionCallback](./server.collisioncallback.md) ## CollisionCallback type A callback function that is called when a collision occurs. **Signature:** ```typescript export type CollisionCallback = ((other: BlockType | Entity, started: boolean) => void) | ((other: BlockType | Entity, started: boolean, colliderHandleA: number, colliderHandleB: number) => void); ``` **References:** [BlockType](./server.blocktype.md)<!-- -->, [Entity](./server.entity.md)