Nav Mesh Agent enemies spawning.
Hello all,
I need your help with bad spawning enemies which have saved Vector3 positions. I have a map. When I start new game they spawn randomly and then I can save it. When i continue this game they should spawn on the saved position and they will, when no walls are around the map. When I make wall around the map they spawn behind the wall (see image) and not on saved position.
Hope you will understand to my problem and help me, thanks all, have a nice coding day!
Hello.
Please read the FAQ, look other posts. We can not tell you what is happening withous seeing the code ytou use for spawning.
IS a spawning problem? or is a Vector3 storing problem? Is osible you are spawinign at worng position? is posible you are spawingin outside the navmesharea? is posible you are storing wrond the positions?...
Thank you for your reply. The map have Nav $$anonymous$$esh walkable. When is wall on, the map have baked not walkable parts on wall so enemy/me can not go throw it. When I delete my walls and baked terrain to walkable, the enemy spawn on the right position (saved position), when I again create those walls and again bake it, the enemy spawn behind the wall altrought the saved position is right showed in Debug.Log... They only spawn behind the wall and not on the right position from save when the wall is active.