What should I use for collision detection in three.js (Physijs, cannon, only three.js)

I need to create collisions. I have about 20 objects and if they have intersection, they should push away. As in example http://www.geofx.com/graphics/nehe-three-js/lessons25-32/lesson30/lesson30webgl.html
But I have 3D objects, which I load
Should I use http://chandlerprall.github.io/Physijs/library, cannon.js or can I use only three.js?
Maybe there are another examples…

See Preferred physics engine (cannon.js, ammo.js, DIY...), but note that you can do quite a lot without a physics engine easily if you’re just detecting collisions, and not necessarily simulating the effects of those collisions.

2 Likes

I need effect such as in example
http://www.geofx.com/graphics/nehe-three-js/lessons25-32/lesson30/lesson30webgl.html
I find collisions but I don’t know how to simulating the effects of collision…