mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Handle scaled bodies properly
This commit is contained in:
parent
c9a98088b6
commit
d884fd0468
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ var SetBody = {
|
||||||
var cx = body.centerOffset.x;
|
var cx = body.centerOffset.x;
|
||||||
var cy = body.centerOffset.y;
|
var cy = body.centerOffset.y;
|
||||||
|
|
||||||
this.setOrigin(rx + (cx / this.width), ry + (cy / this.height));
|
this.setOrigin(rx + (cx / this.displayWidth), ry + (cy / this.displayHeight));
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Add table
Reference in a new issue