Documentation
    Preparing search index...

    Interface UnitScale

    §40's SI relation for world units.

    These are the only two numbers in the record that mean anything to physics: they say what one world unit is, so an application can state that its world is authored in centimetres (lengthToMeters: 0.01) without every density, gravity, and damping default silently lying about it. They do not change API units — a position is still a number of world units on both sides.

    interface UnitScale {
        lengthToMeters: number;
        massToKilograms: number;
    }
    Index
    lengthToMeters: number

    Metres per world length unit. Finite and greater than zero.

    massToKilograms: number

    Kilograms per world mass unit. Finite and greater than zero.