Path finder for obstacle avoidance

Path finder for obstacle avoidance

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Path finder for obstacle avoidance

Post by SpliFF »

I need a way to call Spring.FindShortestPath(movetype, start, end, obstacles) and get back a path object that never passes too close to an obstacle. The syntax of obstacles would be

Code: Select all

obstacles = {
   {x,y,z,r}, {x,y,z,r}, ...
}
Where r is the radius of the obstacle.

The purpose is to constrain a path to avoid known enemies (r being the enemies weapon radius or physical size or los or whatever).
Post Reply

Return to “Feature Requests”