nape-js API
    Preparing search index...

    Interface MoveResult

    Result returned by CharacterController.update.

    interface MoveResult {
        groundBody: Body | null;
        grounded: boolean;
        groundNormal: Vec2 | null;
        onMovingPlatform: boolean;
        slopeAngle: number;
        timeSinceGrounded: number;
        wallLeft: boolean;
        wallRight: boolean;
    }
    Index

    Properties

    groundBody: Body | null

    The body the character is standing on, or null.

    grounded: boolean

    True if the character is standing on a surface within slope limits.

    groundNormal: Vec2 | null

    Ground surface normal, or null if not grounded.

    onMovingPlatform: boolean

    True if standing on a kinematic (moving) platform.

    slopeAngle: number

    Angle of the ground slope in radians (0 = flat).

    timeSinceGrounded: number

    Seconds since the character was last grounded (for coyote-time).

    wallLeft: boolean

    True if touching a wall on the left side.

    wallRight: boolean

    True if touching a wall on the right side.