b00kworm
11-07-2008, 12:20 PM
I have been trying to make a collision detector for a project that I am doing, and although this one doesn't seem to be working for my own project, someone else might like it. I haven't actually made a function to make the man stop when he walks into the building, but I have been able to measure the distance so that when he walks up to the building's edge, the value becomes zero. The main problems with this program are that it needs a whole set of variables for each two objects being compared and that it doesn't work if it encounters an object with a raised centerpoint, like the lemur. Give me your feedback and improvements!