rstralberg
Member
|
[SOLVED] Rebuilding Path in program
Creating a workable path in the Editor works just fine.
In my program I now and then remove or just move objects,
which leads to a path that has 'non-walkable' areas where the removed
objects has been.
Is there a way to either recalculate the world path or maybe the area where
the removed object was placed, or in some cases where a new object has been
introduced.
(This post was last modified: 07-10-2015 08:05 PM by rstralberg.)
|
|
07-10-2015 03:22 PM |
|
Zervox
Member
|
RE: Rebuilding Path in program
PathObstacle gets removed/added as they are created, would that work?
(This post was last modified: 07-10-2015 04:13 PM by Zervox.)
|
|
07-10-2015 04:10 PM |
|
rstralberg
Member
|
RE: Rebuilding Path in program
Thanks for the hint. Actually after some thinking I realized that I looked at the problem wrong way, again!!
The correct way seems to be set the objects I need to move, remove and restore to be ignored by Path algorithm.
Collision detection will take care of the player not walking through them anyway.
However I got at look at PathObstacles which may become handy later on.
Thanks.
|
|
07-10-2015 08:05 PM |
|