Skip to content

Commit 9875318

Browse files
committed
Added missing dx/dy properties
1 parent 95826aa commit 9875318

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/physics/arcade/StaticBody.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,30 @@ var StaticBody = new Class({
363363
* @since 3.0.0
364364
*/
365365
this.physicsType = CONST.STATIC_BODY;
366+
367+
/**
368+
* The calculated change in the Body's horizontal position during the current step.
369+
* For a static body this is always zero.
370+
*
371+
* @name Phaser.Physics.Arcade.StaticBody#_dx
372+
* @type {number}
373+
* @private
374+
* @default 0
375+
* @since 3.10.0
376+
*/
377+
this._dx = 0;
378+
379+
/**
380+
* The calculated change in the Body's vertical position during the current step.
381+
* For a static body this is always zero.
382+
*
383+
* @name Phaser.Physics.Arcade.StaticBody#_dy
384+
* @type {number}
385+
* @private
386+
* @default 0
387+
* @since 3.10.0
388+
*/
389+
this._dy = 0;
366390
},
367391

368392
/**

0 commit comments

Comments
 (0)