Question by
TheOneMiner · Oct 30, 2021 at 06:06 PM ·
ainavmeshagentnavigation
How to change enemy AI position through baked walls?
I want to make a door in my game. A door that you can walk through and an enemy can follow. The door is of course on the side of a building and I don't want the enemy to walk through walls so I want it so when the enemy is close enough to the door (that is currently just a cube), the Enemy will teleport into another position. Currently the enemy can't get through the door it just changes it's position facing the door from the outside of the building.
The walls of the building are baked and the enemy just cant get through them.
This also doesn't work with the player as I use NavMeshAgent with the player as well.
Comment