Miarmy Crowd Simulation Documentation (English)

Ellipse Range

Sphere range can be ellipse shape since version 5.2.

Concept

In some cases, if our agent has length on its body shape like the horses or crocodiles, we should use the ellipse detection range, this can make the simulation better.

For example in below pictures, if we want to the 2 horses avoid each other in race, the 1st picture will trigger the 2 horse avoid each others, but actually the dont need at this time.

Then once we set the sphere range into ellipse (in 2nd picture below) the distance between them are longer, then, they won't avoid each other in this case.

sphere range (full)

sphere range (full)

Usage

In each agent group node, there is an extra attribute sphereSX, and the default value is 1. When you set it less than 1, it will scale the sphere down in X direction and make it ellipse shape.

Set the scale of sphere .sx 0.3


sphere .sx = 1 (left) .sx = 0.3 (right)










Basefount Technology