
06-23-2012, 02:12 AM
|
|
Will work for food. Maybe
|
 |
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
|
Collision detection for something like this that involves angles is not simple since there's no way to check for rotated boxes or such. You're going to have to create a "line" of about 8 or so checks in the front of the char(or rear, if backing up) with a loop and check if any of those hit a wall. |
|
|
|