Miarmy Crowd Simulation Documentation (English)

Indexing Technique

Some perception contents support indexing. The perception contents which can be indexed are:

  • Bound
  • Zone
  • Road
  • Wind
  • RBD emitter
  • etc...

On each one of these perception contents, usually there is an attribute XXX ID, such as Bound ID or Road ID. The sentence can be modified to such as I'm in bound[2], road[0] point to my LEFT or I'm in zone[15]. If the sentence name have ID, it can only precept and interact with the perception contents with the same ID, for example, road[3] point to my RIGHT can only fetch results from the road which Road ID is 3.

For example, bound is one kind of them. Please notice there is a Bound ID attribute on each bound.



Bound ID attribute can be any positive value (including 0)

We can simplify use I'm in bound[0] to test whether current agent in bound which Bound ID is 0. So modified from the previous bound example, the results will be:

  • Return 1 for agent A, because only A is inside of bound which ID is 0
  • Return 0 for agent B, C, D and E

 


Bound sentences with indexing technique

 

 

 

Basefount Technology