BodyCompOpt
:Options for the body component.
group Components
subgroup Component Types
damping
?: numberHow much velocity decays (velocity *= 1 / (1 + damping * dt) every frame).
since v3001.0
jumpForce
?: numberInitial speed in pixels per second for jump().
maxVelocity
?: numberMaximum velocity when falling.
gravityScale
?: numberGravity multiplier.
isStatic
?: booleanIf object is static, it won't move, all non static objects won't move past it, and all calls to addForce(), applyImpulse(), or jump() on this body will do absolutely nothing.
since v3000.0
stickToPlatform
?: booleanIf object should move with moving platform (default true).
since v3000.0
mass
?: numberMass of the body, decides how much a non-static body should move when resolves with another non-static body. (default 1).
since v3000.0