pmndrs / cannon-es

💣 A lightweight 3D physics engine written in JavaScript.
https://pmndrs.github.io/cannon-es/
MIT License
1.75k stars 130 forks source link

Bodies vibration #129

Open NIRumiantsev opened 2 years ago

NIRumiantsev commented 2 years ago

I currently learn cannon.js and struggle with the strange problem. All physical bodies produce some kind of vibrations when they stacked to each other. You can see it even in your own example: https://pmndrs.github.io/cannon-es/examples/split_solver . The frequency depends on solver iterations and gravitation. Anyone faced this issue before?

marcofugaro commented 2 years ago

Can you record a video? I am not seeing it..

marcofugaro commented 2 years ago

Does it happen for the jenga example as well? https://pmndrs.github.io/cannon-es/examples/jenga

NIRumiantsev commented 2 years ago

Does it happen for the jenga example as well? https://pmndrs.github.io/cannon-es/examples/jenga

Yes it does! You can just set solver iterations to 1 and you will see jenga crashes