Hello, I am trying to simulate the flight of a robot in an indoor environment. I am required to provide collision detection information for any trajectory the robot takes. I have modeled the environment in CATIA and imported it to Simulink 3D Animation's 3D world editor as a VRML CAD model. I have approximated the robot as a simple cuboid . All the objects in the environment are cuboids as well.
I cannot find a method to perform collision detection between the robot and the environment. I have considered writing code that finds distance between the blocks and the robot, but writing it for every block is not feasible. Also, i might have to change the environment later. I think placing a proximity sensor on the avatar and changing its coordinates along with the trajectory might work. But I could not figure how to do that yet.
It would be a great help if anyone can help me in this regard.