UNPKG

hytopia

Version:

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

115 lines (51 loc) 1.9 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [SimulationEventPayloads](./server.simulationeventpayloads.md) ## SimulationEventPayloads interface Event payloads for Simulation emitted events. **Signature:** ```typescript export interface SimulationEventPayloads ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> ["SIMULATION.DEBUG\_RAYCAST"](./server.simulationeventpayloads._simulation.debug_raycast_.md) </td><td> </td><td> { simulation: [Simulation](./server.simulation.md)<!-- -->; origin: [Vector3Like](./server.vector3like.md)<!-- -->; direction: [Vector3Like](./server.vector3like.md)<!-- -->; length: number; hit: boolean; } </td><td> Emitted when a debug raycast is performed. </td></tr> <tr><td> ["SIMULATION.DEBUG\_RENDER"](./server.simulationeventpayloads._simulation.debug_render_.md) </td><td> </td><td> { simulation: [Simulation](./server.simulation.md)<!-- -->; vertices: Float32Array; colors: Float32Array; } </td><td> Emitted when the simulation debug rendering is enabled. </td></tr> <tr><td> ["SIMULATION.STEP\_END"](./server.simulationeventpayloads._simulation.step_end_.md) </td><td> </td><td> { simulation: [Simulation](./server.simulation.md)<!-- -->; stepDurationMs: number; } </td><td> Emitted when the simulation step ends. </td></tr> <tr><td> ["SIMULATION.STEP\_START"](./server.simulationeventpayloads._simulation.step_start_.md) </td><td> </td><td> { simulation: [Simulation](./server.simulation.md)<!-- -->; tickDeltaMs: number; } </td><td> Emitted when the simulation step starts. </td></tr> </tbody></table>