Game Development Community

1.1.2 -- When FPS drops below a certain amount, the physics die

by John Klimek · in Torque Game Builder · 10/03/2006 (12:45 pm) · 2 replies

This bug has existed for quite a while (and I'm aware Melv is working on "significant" changes to the physics for the next TGB release so maybe this will be fixed), but I'd like to re-post this since the bug still exists in 1.1.2.

The problem is that when you are using the built-in physics engine and the framerate drops below a certain amount, it just goes crazy.

Example:

A ball is bouncing on the floor very gently and moving only a tiny bit. If you hold down the mouse on the window frame (eg. the Windows XP window) thus freezing the game, the instant you let go of the mouse (eg. restoring control to the window) the physics goes crazy and the ball gains insane amounts of momentum.

I'm pretty sure this happens because when you hold down the mouse on TGB's game window and then let go, the framerate actually is in the single digits (for a split second or two).

Maybe I'm off base with my hypothesis on why this is happening, but regardless I'd really like to see this get fixed. =)

#1
10/04/2006 (2:29 am)
I could be wrong, but I think what actually happens is that since physics are time-based, when you drag the window you basically stop physics from applying the amount of force that was supposed to be applied over that period of time so it adds up and is applied all at once as soon as the physics system can apply it.

Either way, stuff like that will be a thing of the past relatively soon.
#2
10/04/2006 (5:36 am)
Ahh, glad to hear it will soon be a thing of the past!