You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep, this is a conspiracy of a few different approximations biting the simulator simultaneously.
tldr: You can avoid this by using elasticity slightly less than 1, and by cranking up the number of substeps. At elasticity exactly 1.0, the error accumulated by the ball slightly penetrating the ground after every substep allows it to smuggle energy out of the simulator. When elasticity is less than 1, it can still smuggle a little energy, but it's at least bounded. Here's a version with elasticity .99 and substeps = 16:
This is a known issue with discrete physics simulation. Fancier simulators implement "sleeping" methods, where objects that are at rest are simply not simulated to avoid the accumulation of this type of error.
Thankfully, this sort of thing should disappear completely in a new version of Brax that's in the works right now :)
Hi, I encountered strange situation.
A ball on the fixed ground starts bouncing.
Moreover, energy is not conserved. (It becomes larger and larger.)
The text was updated successfully, but these errors were encountered: