Geometric Plugin

Performing collision detection and distance calculation is easily handled via dedicated API functions that operate on scene objects, e.g. such as sim.checkCollision or sim.checkDistance.

The same functionality is however also available at a lower level, via the geometric plugin, and allows to perform the same kind of calculations, but in an independent manner from CoppeliaSim scene objects, e.g. you are able to create mesh, OC-tree and point cloud data structures and perform collision detection or distance calculations on them, without having to create scene content. This works by directly interacting with the geometric plugin's API.

For an example, refer to the following scene: scenes/sceneObjectIndependentGeometricCalculationExample.ttt, and make sure to inspect the attached child scripts.