phaser - v4.0.0-rc.4
    Preparing search index...
    • Calculates and returns the vertical overlap between two arcade physics bodies and sets their properties accordingly, including: touching.up, touching.down, touching.none and `overlapY'.

      Parameters

      • body1: Physics.Arcade.Body

        The first Body to separate.

      • body2: Physics.Arcade.Body

        The second Body to separate.

      • overlapOnly: boolean

        Is this an overlap only check, or part of separation?

      • bias: number

        A value added to the delta values during collision checks. Increase it to prevent sprite tunneling(sprites passing through another instead of colliding).

      Returns number