-
Notifications
You must be signed in to change notification settings - Fork 400
Navigation
Mikulas Florek edited this page Mar 13, 2021
·
4 revisions
There are several ways to do navigation depending on whether animation or physics is involved. Zones are related to all of them.
- create an entity
- add
navigation / zone
component - set desired size
- click
generate
in property grid - click
save
in property grid to save the recently generated navmesh data
You can check Draw navmesh
in property grid to make sure your navmesh is correct
- creat an entity, the entity must be inside
navigation zone
- add
navigation / agent
component - add
lua script
component - call
this.navmesh_agent:navigate(destination, 10, 1)
in agent's script
You can see demo as an example.