Attaches this Slot
to another one.
The owner
of this Slot
assumes rotation of the target
and is parented.
Example
//Attaches and parents itemA to itemB via their slots
let itemA = Scene.getItem('itemA')
let itemB = Scene.getItem('itemB')
let itemASlot = itemA.getSlot('Top')
let itemBSlot = itemA.getSlot('Bottom')
itemASlot.attachTo(itemBSlot)
the target Slot
this Slot
should be attached to.
Class for slot related methods and properties.
Slots are helper-objects which allow you to attach items to. Attached items move with the slot and are treated as child of the item they are attached to.
By default, all items have a
"Top"
and"Bottom"
slot.