Centroid Property

See Also Applies To Example Model

Returns the average position (weighted by the Mass property) of all members in the collection. Read only VPoint.

Remarks

When a Bot object is created, its mass is initialized to 1.

Example

In the following example, a line is drawn from each Bot in a Group object to the centroid of the Group.

BlueGroup.Pen.DrawTo BlueGroup.Centroid