ricardojmendez / UnitySteer

Steering, obstacle avoidance and path following behaviors for the Unity Game Engine
https://numergent.com/tags/unitysteer/
Other
1.2k stars 275 forks source link

FindClosestEdge in SteerForNavmesh #16

Closed mgoadric closed 9 years ago

mgoadric commented 11 years ago

I couldn't seem to ever end up in the else block in lines 164-170 in SteerForNavmesh, even when my agents were far away from the Navmesh. They would return very far away edges and try to navigate to them incorrectly. I think this is due to the use of the same NavMeshHit object in both lines 150 and 155. If I create a new NavMeshHit object for use in line 155, then it hits the else block when it should.

ricardojmendez commented 11 years ago

Hi,

You may want to ping Sebastian Ludwig, who created the behavior. I'll take a look as soon as I get a breather.

ricardojmendez commented 9 years ago

Hi,

Any more notes on this? As I mentioned I'm not using SteerForNavmesh myself, and since I'm doing a UnitySteer clean-up, I was wondering if you had contacted Sebastian about it.