Skip to content

footprintOf beta ​

Function of @v12-engine/engine

ts
footprintOf: (def: UnitTypeDef) => {
    w: number;
    d: number;
}

Gives the footprint of a unit type: its own, or a square the width of its collision diameter, rounded up