hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
62 lines (30 loc) • 957 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Simulation](./server.simulation.md) > [enableDebugRaycasting](./server.simulation.enabledebugraycasting.md)
## Simulation.enableDebugRaycasting() method
Enables or disables debug raycasting for the simulation.
**Signature:**
```typescript
enableDebugRaycasting(enabled: boolean): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
enabled
</td><td>
boolean
</td><td>
Whether to enable debug raycasting.
\*\*Side effects:\*\* Emits debug raycast events when `Simulation.raycast` is called.
\*\*Category:\*\* Physics
</td></tr>
</tbody></table>
**Returns:**
void
## Remarks
When enabled, raycasts emit `SimulationEvent.DEBUG_RAYCAST` for visualization.