From b483fc4e1a12ab699624fa7bb72e1653350d60fc Mon Sep 17 00:00:00 2001 From: Bill Reed Date: Sun, 29 Apr 2018 11:33:01 -0400 Subject: [PATCH 1/2] update arcade collider factory method optional params to match arcade world collider optional params --- src/physics/arcade/Factory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/physics/arcade/Factory.js b/src/physics/arcade/Factory.js index 9edd71047..fa33fb011 100644 --- a/src/physics/arcade/Factory.js +++ b/src/physics/arcade/Factory.js @@ -65,9 +65,9 @@ var Factory = new Class({ * * @param {Phaser.Physics.Arcade.Body} object1 - The first object to check for collision. * @param {Phaser.Physics.Arcade.Body} object2 - The second object to check for collision. - * @param {ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide. - * @param {ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean. - * @param {*} callbackContext - The scope in which to call the callbacks. + * @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide. + * @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean. + * @param {*} [callbackContext] - The scope in which to call the callbacks. * * @return {Phaser.Physics.Arcade.Collider} The Collider that was created. */ From a50b30221671ccc35eb888dee181a9e5eb763ca0 Mon Sep 17 00:00:00 2001 From: Bill Reed Date: Sun, 29 Apr 2018 11:35:19 -0400 Subject: [PATCH 2/2] same for overlap --- src/physics/arcade/Factory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/physics/arcade/Factory.js b/src/physics/arcade/Factory.js index fa33fb011..97a501140 100644 --- a/src/physics/arcade/Factory.js +++ b/src/physics/arcade/Factory.js @@ -84,9 +84,9 @@ var Factory = new Class({ * * @param {Phaser.Physics.Arcade.Body} object1 - The first object to check for overlap. * @param {Phaser.Physics.Arcade.Body} object2 - The second object to check for overlap. - * @param {ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide. - * @param {ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean. - * @param {*} callbackContext - The scope in which to call the callbacks. + * @param {ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide. + * @param {ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean. + * @param {*} [callbackContext] - The scope in which to call the callbacks. * * @return {Phaser.Physics.Arcade.Collider} The Collider that was created. */