[SOLVED] Pathfinding enemies as impassable objects?

I am using the pathfinding extension. And have several enemies spawning and then “pathing” after the player. I’ve added both the Pathfinding and the PathfindingObstacle to the enemy object. However they can still end up at the exact same position and walk thru each other.
My guess is that at the time when their destination is set by this:
image
the position is seen as passable, because it is unoccupied at that point in time.
So the PathfindingObstacle doesn’t “compute” while moving but only when setting the destination, which is not useful for my usage scenario :slightly_smiling_face:

SO how do I prevent my enemies from walking thru each other and ending up at the same location?

Try setting the cost (obstacle cost) of passing the object(enemies) to a higher value (that is not impassable).

1 Like

(Solved) ended up adding standard collision testing to the enemies
image
That solves it

Set your topic title to include [SOLVED] :smile:

I don’t know how to do that… but some of my posts now have the (SOLVED) magically added, also this one… ???

Well, if you are a member, regular or leader (rarely granted) user, you will have a ability to change your post’s title. (and your post’s content)

Also, Regular user have an ability to change other’s post title and category but not content.

well my “trust level” is just “basic user” which is probably why I can’t :slight_smile:

3 Likes

Always feel free to reply to your own post that you solved it, and one of us will add [SOLVED] to the post title, just helps others know which topics are/aren’t solved :smile:

2 Likes