position_box_next_to_box
Functions
compute_initial_placement(box, target, bounds) ⇒ Vector2
Kind: global function
| Param | Type |
|---|---|
| box | AABB2 |
| target | AABB2 |
| bounds | AABB2 |
- compute_initial_placement(box, target, bounds) ⇒
Vector2- ~preferredDirections :
Array.<Vector2> - ~computePlacementScore(placement) ⇒
number
- ~preferredDirections :
compute_initial_placement~preferredDirections : Array.<Vector2>
list of preferred directions, ordered. First direction is higher priority than the next, last is lowest priority
Kind: inner constant of compute_initial_placement
compute_initial_placement~computePlacementScore(placement) ⇒ number
Kind: inner method of compute_initial_placement
| Param | Type |
|---|---|
| placement | Vector2 |
position_box_next_to_box(box, target, bounds) ⇒ AABB2
Kind: global function
Returns: AABB2 - input box parameter
| Param | Type |
|---|---|
| box | AABB2 |
| target | AABB2 |
| bounds | AABB2 |