Move Object Nearby
Moves a child object horizontally (within the global XY plane) to be within a specified distance range relative to the parent object.

Minimum/Maximum Distance (m): Distance from the bounds of the parent object provided by a Number.
A region representing the provided distances is created by inscribing the bounds of the object with an ellipse. A distance of 0 corresponds to no offset from the original object bounds (shown as "minimum" below). Distances above 0 offset the object bounds by that specified distance. The outer region is defined by inscribing the offset bounds with a new ellipse. By using an ellipse, this prevents the corners of the rectangular region from being sampled, which would otherwise sample distances greater than intended. Furthermore, using a circular region relative to the object center would not account for objects with a footprint of uneven proportions (e.g. a vehicle).

In this example, between 2 and 4 screws are placed on a ground plane using the "Put Object" placement rule. For each object, an additional screw is aligned to it using the "Align Objects" placement rule. The same screw is then moved to be near another screw with a minimum distance of 0.05 meters and a maximum distance of 0.1 meters.


Last updated