Hi folks,
While converting my games from Ammo to Havoc, I noticed that applyForce
was behaving very differently. I recognize that there are many difference between the engines, especially at low velocities, but it appears that either applyForce (or gravity) has an error factor of 2 somewhere.
I derived this playground from the Havoc applyForce demo to make it easier to show the difference. Click and hold the primary/left mouse button to oppose gravity perfectly. Use any other mouse button to oppose with half that force. Use the havoc
variable on line 33 to switch between Ammo and Havoc as the physics engine. You’ll see that Ammo works as expected (the left button equalizes gravity) but with Havoc, it’s the right button. In my experimentation, this holds true across variations in mass and gravity.
Looking at the code, I didn’t spot any issues in the plugin code. I don’t see a way to look inside Havoc’s code, but I think that’s by design, right?
Cheers, Brian