phaser-plugin-debug-draw icon indicating copy to clipboard operation
phaser-plugin-debug-draw copied to clipboard

why not support obj in container?

Open WankkoRee opened this issue 2 years ago • 2 comments

i try this and all thing is right.

image

and obj.list is also okay with container

WankkoRee avatar May 01 '23 10:05 WankkoRee

But unlike with layers, it would need the transformed position of the children:

const { tx, ty } = gameObject.getWorldTransformMatrix();

I guess it could be added.

samme avatar May 01 '23 14:05 samme

yes, I try to replace obj.x, obj.y to { tx, ty } = gameObject.getWorldTransformMatrix(), it works when container has been set x or y.

image

WankkoRee avatar May 01 '23 15:05 WankkoRee