UNPKG

arcade-physics

Version:
21 lines 1.05 kB
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * 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'. * * @function Phaser.Physics.Arcade.GetOverlapY * @since 3.0.0 * * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to separate. * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to separate. * @param {boolean} overlapOnly - Is this an overlap only check, or part of separation? * @param {number} bias - A value added to the delta values during collision checks. Increase it to prevent sprite tunneling(sprites passing through another instead of colliding). * * @return {number} The amount of overlap. */ export declare const GetOverlapY: (body1: any, body2: any, overlapOnly: any, bias: any) => number; //# sourceMappingURL=GetOverlapY.d.ts.map