Skip to main content

position_box_next_to_box

Functions

computeInitialPlacement(box, target, bounds)Vector2
position_box_next_to_box(box, target, bounds)AABB2

computeInitialPlacement(box, target, bounds) ⇒ Vector2

Kind: global function

ParamType
boxAABB2
targetAABB2
boundsAABB2

computeInitialPlacement~preferredDirections : Array.<Vector2>

list of preferred directions, ordered. First direction is higher priority than the next, last is lowest priority

Kind: inner constant of computeInitialPlacement

computeInitialPlacement~computePlacementScore(placement) ⇒ number

Kind: inner method of computeInitialPlacement

ParamType
placementVector2

position_box_next_to_box(box, target, bounds) ⇒ AABB2

Kind: global function
Returns: AABB2 - input box parameter

ParamType
boxAABB2
targetAABB2
boundsAABB2