mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +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 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;
|
||||
|
|
Loading…
Reference in a new issue