How can i use physics with instanced mesh?

I am instancing models and I wanna add rigid body physics to them. I won’t mind using simple boxes as physical object shape but I was thinking about instancing these boxes too, is there any lib for that or any example?

The following example demonstrates how to use instanced mesh with ammo.js.

https://threejs.org/examples/physics_ammo_instancing

2 Likes