We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6bd24de + 807aeed commit ab8ad19Copy full SHA for ab8ad19
1 file changed
src/physics/arcade/Body.js
@@ -160,7 +160,7 @@ var Body = new Class({
160
* @type {Phaser.Math.Vector2}
161
* @since 3.0.0
162
*/
163
- this.prev = new Vector2(gameObject.x, gameObject.y);
+ this.prev = this.position.clone();
164
165
/**
166
* The position of this Body during the previous frame.
@@ -169,7 +169,7 @@ var Body = new Class({
169
170
* @since 3.20.0
171
172
- this.prevFrame = new Vector2(gameObject.x, gameObject.y);
+ this.prevFrame = this.position.clone();
173
174
175
* Whether this Body's `rotation` is affected by its angular acceleration and angular velocity.
0 commit comments