Versions Compared

Key

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

Terrain sentences let agents are able to feel terrains and interactive with them, adapt the shape of terrain, such like follow the height and align the orientation.
For making the agents are able to feel terrains, we need mark terrain for that piece of plane mesh in Miarmy Terrain Manager.

...



Agents are able to feel the closest terrain in scene


The I'm higher than terrain distance sentence will return the height underneath the feet of agent.

For example and take a look at the following picture, the ground channel will sentence will return 3 for first agent, 0 for second agent, minus 4 for third agent and 2 for last agent.

...

I'm higher than terrain distance < 0 :This sentence means I'm higher than terrain (then I need to go up)

 


The I'm on terrain UPHILL(DOWNHILL) will return the relationship between the Z-axis of agent and the terrain plane of that agent place, for example the following picture, the first agent is on "uphill" because the ground in-front is higher, and the second agent is on "downhill" because the ground in-front is lower, whereas the third agent is on "plane" because the ground in-front is align to Z-axis of current agent.



agents from left to right are "uphill", "downhill" and "plane" relationship to terrain


The higher terrain on LEFT(RIGHT) sentence is very familiar with "I'm on terrain UPHILL(DOWNHILL)" sentence, nothing special but testing the X-axis (left/right terrain height).

...