Testbed, verticalstack and singlestep

Something i noticed when using the single step in the verticalstack example:

When stepping the stacks will fall apart, while normally the stacks will stand.

Attachment:
verticalstackbug.png
verticalstackbug.png [ 8.81 KiB | Viewed 318 times ]


Reproduce:
- start testbed (default settings)
- select vertical stack
- start pressin single step until all movement is over, the stacks will be fallen apart...

I do not understand that the simulation behaves differently, can somebody explain me what is going on here?

Greetings,
Martijn van der Kooij
Spotted. When "paused" the engine is actually doing timesteps of duration 0, which still make a difference to the world.
I think this is actually a bug rather than deliberate.
Thanks for the reply,

it means the step functionality needs to be used with care when debugging stuff (i expect that people will use it for that purpose)

When moving the testbed to the popcap game framework i noticed this, luckely i checked it with the normal testbed. 🙂

For me it has no high priority, but people should be warned about this. Just in case they use it.
Sorry, to clairify: I don't think the TestBed should be running Step(0)s. The fact that they do something is quite deliberate; it's useful when you want to detect collisions and resolve penetrations without moving the objects any further.

Original thread: https://box2d.org/forum/viewtopic.php?t=2045