BodyCompOpt:

Options for the body component.

damping?: number

How much velocity decays (velocity *= 1 / (1 + damping * dt) every frame).

since

jumpForce?: number

Initial speed in pixels per second for jump().

isStatic?: boolean

If object is static, won't move, and all non static objects won't move past it.

since

stickToPlatform?: boolean

If object should move with moving platform (default true).

since

mass?: number

Mass of the body, decides how much a non-static body should move when resolves with another non-static body. (default 1).

since

kaplay logo

Misc