07-29-2011, 07:45 PM
|
Will work for food. Maybe
|
|
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
Hmm, I haven't done much pathfinding but... what if you ran a scan after you created a successful path and did a raycast between each node and te player. Whenever a node can no longer reach the player because of an obstruction, add the node before it to a new queue. Then, run this same check between the last position in the new queue. Use this much smaller array to create a smoother movement?
Give me a bit and I will draw out a diagram. |
|
|