mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
use gameObject's world position as the debug shape position
This commit is contained in:
parent
58d40fa9e0
commit
10322fcd3a
1 changed files with 1 additions and 1 deletions
|
@ -2464,7 +2464,7 @@ var InputPlugin = new Class({
|
|||
debug.setDisplayOrigin(gameObject.displayOriginX, gameObject.displayOriginY);
|
||||
debug.setRotation(gameObject.rotation);
|
||||
debug.setScale(gameObject.scaleX, gameObject.scaleY);
|
||||
debug.setPosition(gameObject.x + offsetx, gameObject.y + offsety);
|
||||
debug.setPosition(gameObject.getWorldTransformMatrix().tx + offsetx, gameObject.getWorldTransformMatrix().ty + offsety);
|
||||
debug.setScrollFactor(gameObject.scrollFactorX, gameObject.scrollFactorY);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue