Tutorial 3-KIT207


Tutorial 3 -Navigation

In this tutorial I added Navigation Mesh, Agents, Obstacles and Raycasting to my Tasmanian tourist scene in Unity.

First, I created 2 platform models where my 3D character can move around. Then, I added Navigation Mesh to my terrain and also added a NavAgent to my  3d character. I adjusted the settings for Navigation (Agents and Areas).

NavMesh for terrain

NavMesh for terrain
Then I added 2 scripts to my 3D character: 

 

Mouse Target : Use of mouse to move a 3D character around the map.

Obstacle Push: Add ForceMagnitude.


Moving Obstacles

Enemies(AI) chasing 3D character.

Raycast (using mouse) to move 3D character

I am happy with the results I got in this tutorial class. It took me a few days to complete it as I had to do some research and read the tutorial study a few times to get it to work in Unity. Slowly getting the hand of it and I am very happy with the results.

Leave a comment

Log in with itch.io to leave a comment.