We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc58d66 commit 9a34840Copy full SHA for 9a34840
1 file changed
src/physics/arcade/Body.js
@@ -2331,6 +2331,8 @@ var Body = new Class({
2331
{
2332
this.x += x;
2333
2334
+ this.updateCenter();
2335
+
2336
if (vx !== null)
2337
2338
this.velocity.x = vx;
@@ -2365,6 +2367,8 @@ var Body = new Class({
2365
2367
2366
2368
this.y += y;
2369
2370
2371
2372
if (vy !== null)
2373
2374
this.velocity.y = vy;
0 commit comments