Server Example: Ray Casting
Overview
Performs a ray test from a fixed origin, then visualizes the hit point with a polyline and a sphere. Use it as the simplest reference for ray casting.
Screenshot
Binary
Installed executable: ray_casting.
Run
Run the installed executable:
<raisim-install>/bin/ray_casting
On Windows, run ray_casting.exe instead.
This example uses RaisimServer. Start the rayrai TCP viewer and connect to port 8080. RaisimUnity and RaisimUnreal are no longer supported.
Details
Casts a single ray from a fixed origin each frame.
Visualizes the hit point with a polyline and marker sphere.
Uses
World::rayTestagainst terrain and primitives.