Currently, I have several objects that are moving forward randomly using the following code:
model.lookAt(position_x, 0, position_z);
setInterval(function(){
model.translateZ(0.015);
}, 10);
However, I am facing an issue where these objects might crash into each other during these movements. I came across a solution that suggests using bounding boxes for collision detection, but it only seems to work for collisions between two objects:
How to detect collision between two objects in JavaScript with Three.js?
My question is, is it possible to implement collision detection for multiple objects, each having their own set of collision parameters?
Thank you for your help!