melonJS
    Preparing search index...

    Type Alias Body

    Body: ReturnType<typeof Matter.Body.create> & PhysicsBody

    The concrete body handle attached to renderable.body under MatterAdapter. Combines the raw Matter.Body (with all native fields — frictionAir, restitution, friction, angle, angularVelocity, …) with the portable melonJS helper methods (setVelocity, applyImpulse, setStatic, etc.) spliced on at addBody time.

    Type it explicitly when reaching for matter-native fields:

    (this.body as MatterAdapter.Body).frictionAir = 0.02;
    

    Keeps user code free of a direct matter-js import — the matter dependency stays behind the adapter boundary.