Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I disable collision on an NPC?

Asked by 8 years ago

I've been creating this game with pathfinding AI, and I came across this little problem.

I can't manage to get the pathfinding right and this NPC likes to Walk around the store to get to the end position. He ends up running into a wall and staying.

I need to know how to get the NPC not able to collide with walls, but can with floors.

Thanks for all help!

1 answer

Log in to vote
1
Answered by 8 years ago

Okay, there's not really a good way to get something to only interact with certain things. So let's try it a different way:

Give the NPC some pathfinding nodes
This allows you to use Pathfinding from node to node, which allows you to make custom points to path to and for you to get around tricky bits which the default pathfinding has trouble with. This also has the benefit of having increased fidelity in some cases and better scriptability.

Ad

Answer this question