Tutorial work - Navmesh and raycasting
These ghosts have been given agency by using a navigation mesh, so they can find their way around the world and attempt to arrive at a specified destination, this is similar to giving them a map of all the places they are allowed to go.
However sometimes the world changes, so they will have to navigate around moving objects, we do this by defining certain objects as moving obstacles.
Obstacles are not the only dynamic feature of a navmesh, we can also set them a dynamic goal to move towards, in this case it is the player.
In this video the navmesh agents are being spawned by clicking on a screen, this was achieved by shooting a laser or "ray" out from the camera, and finding out where in the game world it lands, then taking those coordinates and placing something there, in this case a ghost npc.
(note that the barrels on the bridge are not marked as obstacles, so the ghosts will not attempt to move around them)
KIT207 Portfolio
Status | Released |
Category | Other |
Author | billy bones |
More posts
- Self Study 5 - LightingAug 17, 2021
- Game Ideas - Unexpectedly OppositeAug 10, 2021
- Self study 4 - Simple GameAug 10, 2021
- Self Study 3 - Terrain and ProbuilderAug 03, 2021
- Tutorial work - 3rd person character controller + animationsAug 03, 2021
- Self Study 2 - Rigging/Character AnimationJul 26, 2021
- Unity scene tutorialJul 26, 2021
- Self Study 1 - Tourist LocationJul 20, 2021
- Barrel TutorialJul 20, 2021
Leave a comment
Log in with itch.io to leave a comment.