I am a beginner with the Newton Game Dynamics and just finished with the tutorials.
In my program I want to simulate a robot and a vision sensor. The vision sensor should see the environment that would be for example boxes and walls.
From the tutorial I think I have understand that the normal collision detection should simply work with Newton (robot drives into wall and stops,...)
Now I am wondering what is the best (fastest) solution for the vision sensor.
I believe I could use NewtonWorldRayCast() to simulate the sensor, but the sensor should have a wide vision field (30-90 degrees) like so:
For this I need to make many calls to NewtonWorldRayCast() (for example every degree between 0-90) and still I could miss objects in the distance which far apart.
There must be a better way? Like a triangle that simulates the sensor vision region, that can pass through all objects, but I can still use Newton and callbacks to let me know when collisions appear? I mean I do not want the triangle to move the other objects in the simulator.
It would be nice if there is somebody that could give me a tip into the right direction!
And thank you for Newton Game Dynamics. I have started just few days ago but I already like it's simple usage

dave