In Miarmy 4.0 we can control the agents follow the targets of placement placer by input language, And it can work with other logic, for example when the agents move to the placer targets the agents, they can also can feel the other logic like avoid spot, avoid zone etc.

Formation Detection Languages

Firstly you need to understand how to create a placement and make it "as target" (Formation Morph with Place Targets)


Placer Formation Sentences

The sentence will return the degree from the connection line between agent and placer to the agent’ ahead,  just like below picture.

placer is on my left

 

This sentence will return the distances from agent and placer in 3d space. Just like below picture, point A is our agent and point B is the placer,so the 3d distance is the line A-B.

This sentence will return the distances from agent to placer in XZ plane, just like the line B-C.

 

This sentence will return the degree from their orientations. In below picture the placer orient to the left upper corner, and the agent orient to front straight. Then, the angle between them is "alpha"

orientation difference "alpha"

Workflow

 

 

Turn on "As Target" attribute, you can see your placement will turn into red in direction arrow.

 


Frame 1

Frame 30

Follow left/right placer formation


Frame 0, Frame 20, Frame 100