Game Timing

BlitzMax Forums/BlitzMax Programming/Game Timing

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I fail to see the problem.

Imagine your ship traveling at 200pixels/sec. Boom, it hits a wall. Not good. We are now 34 pixels into the wall. This can't be allowed so we move 34 pixels back. The result is that we never pass through the wall - we slide against it.

If you would move us back 34*2 pixels instead you would bounce of the wall. When you bounce you also need to reverse your velocity. Same thing - we never passed through the wall, we bounced off it.

the speed at collision may not be the same as the speed of the frame during the collision.

What does the FPS has to do with our object's speed if you use delta time?

I guess I missunderstand you somehow. Unforunatly I'm going away over the weekend, back monday. I hope you solve it and perhaps someone else can help you til then, good luck!