View Single Post
Humvee driver with collision detection
Status: Offline
Posts: 38
Join Date: Nov 2011
Default 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.
Attached Files
File Type: a2w CollisionDetection.a2w (546.1 KB, 138 views)

For video tutorials on programming in Alice 2.2 check out my YouTube channel

Also check out my Programming in Alice blog at
Reply With Quote