NullEngine & collisions

Is there a way to check if a mesh is colliding with another mesh other than mesh.intersectsMesh()?
This works, but I’d rather not check every wall on the scene manually.

There’s onCollideObservable but I’m not sure how to use it correctly - I’m hoping to have it log each time the selected mesh collides with another in the scene?

You can run collisions using web worker by setting

scene.workerCollisions = true;

That should duplicate the collisions of a null engine I imagine.

For collision events between meshes you can use

Faster performance when using false as second parameter on the intersectsMesh() method.

1 Like

This is no more supported on latest versions unfortunately