padSelectionBounds
@zylem/game-lib / debug / padSelectionBounds
Function: padSelectionBounds()
padSelectionBounds(
box):Box3
Defined in: packages/game-lib/src/lib/debug/selection-bounds.ts:59
Thicken any axis thinner than the minimum and add the uniform margin, in place. The minimum is proportional to the entity's largest extent so a 10-unit floor gets a visible slab while a coin-sized disk does not turn into a cube. Empty or non-finite boxes are returned untouched.
Parameters
box
Box3
Returns
Box3