I've been working on a very simple beginnings of a platformer which has been going ok until I started looking into the whole delta timing thing. I've setup a Bounding box type that handles creation and collision detection against them, the detection and response code worked great until I added delta timing. Now when the "player" rectangle object collides with the "floor" bounding box it jitters around. I've tried a few things to get it smooth again but I'm not having much luck.
EDIT: If someone would like to point out the syntax for a code box in a forum post since I can't seem to find any info on the topic.
This is the code for the Bounding Box type:
And the code for the Delta Timing:
And finally the code for the actual program:
|