- Home /
Question by
nathancvogt · Oct 30, 2018 at 07:15 AM ·
unity 5meshnavmeshbeginnernavmeshagent
Enabling and Disabling Nav Mesh Agent?
Hello, I am extremely new to unity. I am writing a very simple script for my character to control his movement. I want to implement a section that enables the character's nav mesh agent component when it is touching the ground (tagged with "Ground"), then disables it when the character is not touching the ground, therefore I can add a jumping feature and falling physics. I do not know how to reference the nav mesh agent of the character to enable/disable it.
Edit: my character is a cylinder at the moment.
angthing.png
(26.3 kB)
Comment