My Enemy model is turned sideways when patrolling.
So i was looking to find out how to make a patrolling enemy and i followed this thread here, https://forum.unity.com/threads/cant-make-a-simple-patrol-waypoint.272336/ i am using the same script as the thread gives, the only problem is when i play my enemy is just immediately turned on its side on the ground rather than floating straight upwards above the ground. I have no clue why and i'm super new to unity (started in January of 2018) so if anyone has any ideas it would be a big help! If i need to include more detail just ask what you need :D!
Answer by tormentoarmagedoom · May 08, 2018 at 08:44 AM
Good day.
If your patrolling object is moving correctly and the only problem is this one, is because you did not changed the base offset in the NavMEshAgent compoennt.
The yellow rectange represents the NavMeshAgent Component inside your object. The Pentagon is the Object itself. The rectangle will be always exactly over the navmesh AREA, is the rectalnge which is really moving over the area (your gameobject is just "following it") . The left image is the default inital position (the base of the agent is in the center of your object) So, you need to move the rectange relative to your object to make it "fly" (plane) or "half under the surface" (ship) or be exactly over the surface (car).
You need to make tests moving it while runnig the game, to know the best offset for each object!
If helpped, accept the answer please! Bye!