Dante-666 / bouncy-ball

hello world game for g3d development and learning
1 stars 0 forks source link

When objects stop, the simulation freezes sometimes, need to investigate why this happens #26

Open Dante-666 opened 3 years ago

Dante-666 commented 3 years ago

The simulation works for other objects, it's just that sometimes when the object stops, the force applied somehow breaks the system. Check what we are passing in before investigating engine. Put up a condition for nan finding and debug more.

Dante-666 commented 3 years ago

It's depends on the parameters mass and rollingFriction as of now and I've made some observations. The rolling friction doesn't allow the ball to roll when it stops, but it still rolls tangentially to the motion direction which I have to figure out. I think that is causing all the problems.

Dante-666 commented 3 years ago

in Bullet, we have some object flags that can disable deactivation of objects, provide a method to enable this back