Add a obstacle to the list of existing obstacles.
Returns all the platforms around the specified object.
The center X of the area to search.
The center Y of the area to search.
The maximum distance, in pixels, the object is going to do.
An array returned with all platforms near the object.
Static
getGet the obstacles manager of an instance container.
Remove a obstacle from the list of existing obstacles. Be sure that the obstacle was added before.
PathfindingObstaclesManager manages the common objects shared by objects having a pathfinding behavior: In particular, the obstacles behaviors are required to declare themselves (see
PathfindingObstaclesManager.addObstacle
) to the manager of their associated container (seegdjs.PathfindingRuntimeBehavior.obstaclesManagers
).