platformer - v1.0.0
    Preparing search index...

    Adds physics simulation behavior to an entity.

    interface default {
        gravityScale: number;
        groundedOn: symbol | null;
        maxFallSpeed: number;
        type: "dynamic" | "kinematic";
    }
    Index

    Properties

    gravityScale: number

    Gravity multiplier applied to this body.

    groundedOn: symbol | null

    Entity the body is currently grounded on, if any.

    maxFallSpeed: number

    Maximum downward velocity.

    type: "dynamic" | "kinematic"

    Body type affecting how physics is applied.