fixed(): FixedComp

Make a game obj unaffected by camera or parent object transforms, and render at last. Useful for UI elements.

// this will be be fixed on top left and not affected by camera
const score = add([
    text(0),
    pos(12, 12),
    fixed(),
])

returnsThe fixed comp.

sincev2000.0