Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Zone is a kind of perception contents created from a little piece of polygon mesh, usually not complex one.
And similar like terrain, once a piece of geometry been marked zone, there is a McdZoneNode connect to this mesh. This node also records the Zone ID attribute for this zone.

...



Find the closest point, (left) 2D space, (right) 3D space

 

 


The zone is on LEFT(RIGHT) sentence will return the degrees between the agent's Z-axis and the line from agent to the zones, in horizontal space.

...



zone is on LEFT(RIGHT) sentence example

 

 


The zone to me 2D distance sentence will return the distances from agent to zones in XZ plane. Please take a look at the following 2 examples.

...



zone to me 3D distance sentence example in perspective view

 

 


The I'm in area of zone sentence can test whether current agent in the zone area in XZ plane and return True if the agent inside of it.

...

For agent D, "I'm in area of zone" sentence will return false due to that it is not inside of any zone area. 

If you using I'm in area of zone[2].in for  for testing them, the agent B and C will return true and agent A and D will return false.



I'm in area of zone sentence example with/without zone ID, in Top View

 

 


The I'm higher than zone distance can test the heights from agent to the zones.

...