- Joined
- Aug 1, 2013
- Messages
- 4,658
Hi all.
Title sais it all.
How can I make units' pathfinding ignore other units collision?
Title sais it all.
How can I make units' pathfinding ignore other units collision?
So you want the unit to only ignore collision with the target unit, but not with other units?It doesnt even have to collide with that targeted unit.
However, that walking unit may not collide with other units that run into that same target.
I tried making the units flying which will make them move straight into other units but that makes them able to run into each other as well.
Ah, so adding "walkable" doesn't actually disable the collision of units, but tricks the pathfinding AI into thinking it has disabled collision?Nope, giving units ghost will remove their collision from other units towards them.
Which is indeed something that had to be done... but not for actual walking.
It is only for pathfinding and with this, the units could literally walk through the other units.
When making all units classified as "walkable", your pathfinding thinks that it is walkable but when that rider comes to that infantry, it will still be blocked.
The only thing that now changes is the pathfinding route and that was the theoretical solution which just had to be found in the editors.