
-----------------------------------
TokenHerbz
Wed Apr 12, 2006 4:45 pm

Collition detection with speed
-----------------------------------
So collition detection is simple enough, but in programs you may have higher speeds thus collition is rendered useless..  Example if my SMALL astroid is going max speed left, and im the space ship going max speed RIGHT, we usually don't collide cause we hop over eachother...  To solve this problem i tryed making a small example.   I can't figure it out, thus i call on the pro's to assist in this...

Here we have an example to which we show that it HOPS over.


View.Set ("offscreenonly")
var x, y : int := 0
var wx, wy : int := 0
wx := 243

loop
    cls
    x += 10

    if x + i >= wx and x + i 