BodyCompOpt:
Options for the body component.
drag?: number
How much velocity decays (velocity *= (1 - drag) every frame).since
v3001.0
jumpForce?: number
Initial speed in pixels per second for jump().maxVelocity?: number
Maximum velocity when falling.gravityScale?: number
Gravity multiplier.isStatic?: boolean
If object is static, won't move, and all non static objects won't move past it.since
v3000.0
stickToPlatform?: boolean
If object should move with moving platform (default true).since
v3000.0
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
v3000.0