gravity: (x=0, y=EARTH)
I want make permanent bouncing ball. For example I set it coords (200, 200), after it falls down to ground, bounces and return to the same coords as in begin (200, 200). I tried to play with density, elasticity, friction and I got some similar behavior, but is changing. I google a lot and found that the problem is because of rounding floats. Question: which value is changing in engine and which I need to reset after that value will become more then some delta?
Second question: why if I set fixtures like this: fixtures(density=1, elasticity=1, friction=0) it not bounced to the same height, but bouncing with every bounce higher? I set elasticity something like 0,981f
Third question: how one object fixtures depends on second object fixtures? example: ball(1f, 0.6f, 1f) wall(1f, 0.6f, 0f)
and
ball(1f, 0.6f, 1f) wall(1f, 0.6f, 0.5f)
what will change?