Skip to content

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.

Zones

  1. create an entity
  2. add navigation / zone component
  3. set desired size
  4. click generate in property grid
  5. click save in property grid to save the recently generated navmesh data

navigation zone in property grid

You can check Draw navmesh in property grid to make sure your navmesh is correct

No animation, no physics

  1. creat an entity, the entity must be inside navigation zone
  2. add navigation / agent component
  3. add lua script component
  4. call this.navmesh_agent:navigate(destination, 10, 1) in agent's script

You can see demo as an example.

Clone this wiki locally