arcade-physics
Version:
Use Arcade Physics without Phaser.
21 lines • 1.06 kB
TypeScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Calculates and returns the horizontal overlap between two arcade physics bodies and sets their properties
* accordingly, including: `touching.left`, `touching.right`, `touching.none` and `overlapX'.
*
* @function Phaser.Physics.Arcade.GetOverlapX
* @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 GetOverlapX: (body1: any, body2: any, overlapOnly: any, bias: any) => number;
//# sourceMappingURL=GetOverlapX.d.ts.map