Humvee driver with collision detection -
11-30-2011, 09:30 PM
The attached world lets you drive a Humvee around. I've included two kinds of collision detection. One is for circular objects where the distance to function is used.
The second is for rectangular objects where I use a combination of is right of, is left of etc functions and distance to left, distance to right etc.
This works reasonably well. I still get some false collisions on corners - probably because of the fact I use half the Humvee depth as my threshold.
It also (very) occasionally drives into walls.
Other than that it seems to work fairly well.
For video tutorials on programming in Alice 2.2 check out my YouTube channel
http://www.youtube.com/user/drdave785
Also check out my Programming in Alice blog at
http://programminginalice.com
|