attach
Align objects by bounding boxes: move a part so its anchor meets another's anchor, with optional offset. Default stacks it on top.
Instructions
Align by bounding boxes: move part (with its children) so an anchor of its world box lands on an anchor of the
box of to. Surfaces are not looked at: move_to_contact closes a real gap, place_on drops onto a surface. Anchors are fractions 0..1 per axis: (0.5,0.5,0) is bottom centre, (0.5,0.5,1) is top centre.
Default puts the part on top of the target. offset is in metres. Both boxes include the children of each object;
with_children=false measures the two objects alone (the children still move with the part). The answer gives
boxes_used (objects, min, max, size of both boxes after the move) and moved_by; min and max at the top level
are of part alone. Boxes do not follow round or slanted surfaces: use move_to_contact to close the real gap,
place_on to drop onto uneven ground, transform_objects for a known offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| part | Yes | ||
| offset | No | ||
| to_anchor | No | ||
| part_anchor | No | ||
| with_children | No |