Problem to add physic in a hollow cylinder (threeJS, AmmoJS)
Posted: Thu Dec 31, 2020 10:34 am
Hi all,
I'm pretty new to threeJs and AmmoJs (porting of bullet) world and I don't know if I'm moving totally wrong or I miss something.
I created a hollow cylinder with threeJs using custom shape (CODE) and created the physic with ammoJS using btConvexHullShape and btCompoundShape (CODE), but something went wrong and I don't know how to make it work.
Here is a demo.
https://hollow-cylinder.web.app/home
Anybody can help me?
I'm pretty new to threeJs and AmmoJs (porting of bullet) world and I don't know if I'm moving totally wrong or I miss something.
I created a hollow cylinder with threeJs using custom shape (CODE) and created the physic with ammoJS using btConvexHullShape and btCompoundShape (CODE), but something went wrong and I don't know how to make it work.
Here is a demo.
https://hollow-cylinder.web.app/home
Anybody can help me?