melonJS
    Preparing search index...

    Type Alias Body

    Body: planck.Body & PhysicsBody

    The concrete body handle attached to renderable.body under PlanckAdapter. Combines the raw planck.Body (with all native methods — getLinearVelocity, getAngle, getMass, setSleepingAllowed, …) with the portable melonJS helper methods (setVelocity, applyImpulse, setStatic, etc.) spliced on at addBody time.

    Type it explicitly when reaching for planck-native methods:

    (this.body as PlanckAdapter.Body).setBullet(true);
    

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