From 9875318f2071293eadde4fab15437f89cf88a1a4 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 1 Jun 2018 19:52:52 +0100 Subject: [PATCH] Added missing dx/dy properties --- src/physics/arcade/StaticBody.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/physics/arcade/StaticBody.js b/src/physics/arcade/StaticBody.js index 3b5fc7e5c..e4ce9fbab 100644 --- a/src/physics/arcade/StaticBody.js +++ b/src/physics/arcade/StaticBody.js @@ -363,6 +363,30 @@ var StaticBody = new Class({ * @since 3.0.0 */ this.physicsType = CONST.STATIC_BODY; + + /** + * The calculated change in the Body's horizontal position during the current step. + * For a static body this is always zero. + * + * @name Phaser.Physics.Arcade.StaticBody#_dx + * @type {number} + * @private + * @default 0 + * @since 3.10.0 + */ + this._dx = 0; + + /** + * The calculated change in the Body's vertical position during the current step. + * For a static body this is always zero. + * + * @name Phaser.Physics.Arcade.StaticBody#_dy + * @type {number} + * @private + * @default 0 + * @since 3.10.0 + */ + this._dy = 0; }, /**