melonJS
    Preparing search index...

    Interface AdapterCapabilities

    Adapter feature flags. The engine reads these to negotiate optional capabilities; user code can branch on them to gracefully degrade when a feature isn't available under the active adapter.

    interface AdapterCapabilities {
        constraints: boolean;
        continuousCollisionDetection: boolean;
        isGrounded: boolean;
        raycasts: boolean;
        sleepingBodies: boolean;
        velocityLimit: boolean;
    }
    Index

    Properties

    constraints: boolean

    supports joints, springs, hinges, etc.

    continuousCollisionDetection: boolean

    supports continuous collision detection for fast-moving bodies

    isGrounded: boolean

    supports PhysicsAdapter.isGrounded. Adapters that can't cheaply derive ground contact (no contact iteration) report false.

    raycasts: boolean
    sleepingBodies: boolean

    supports body sleeping to reduce simulation cost when idle

    velocityLimit: boolean

    supports BodyDefinition.maxVelocity / PhysicsAdapter.setMaxVelocity. BuiltinAdapter does this via its kinematic integrator; MatterAdapter via an afterUpdate clamp. Adapters that can't enforce a hard cap report false.