About Store Forum Documentation Contact



Post Reply 
[SOLVED] Rebuilding Path in program
Author Message
rstralberg Offline
Member

Post: #1
[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
Visit this user's website Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
rstralberg Offline
Member

Post: #3
RE: Rebuilding Path in program
Thanks for the hint. Actually after some thinking I realized that I looked at the problem wrong way, again!! smile

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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply