Miarmy Crowd Simulation Documentation (English)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Since Miarmy 3.5, we added terrain color perception logic. Now the agent can feel the color of the ground and also the gradient of the color.

With these tools we can achieve:

  • Feel terrain color and perform some behaviors
  • Feel terrain color gradient and do not exit the range of color

 

Terrain Color Sentences

Terrain Color Intensity

the color intensity of my position Return 0~1 based on the intensity of ground color in position

 

Color Gradient

 

more darker on LEFT/RIGHT

 

more darker in FRONT/BACK


 

Ground Color Gradient Example

Support there are 4 agents on terrain in 4 positions and feel different gradient of the texture color

All agents face same direction just different position

  • agent 1: 
    more dark in FRONT will return true
  • agent 2:
    more dark in FRONT will return true
  • agent 3:
    more dark on RIGHT will return true
  • agent 4:
    more dark in BACK will return true

 

 

 

 

 

 

 

  • No labels