Search the Community
Showing results for tags 'worldtransform'.
Found 1 result
Example: https://jsfiddle.net/8du4erv2/2/ Things I don't understand 1) Why is the SUB bunny as big as first, because I haven't added w, h or scale for it? 2) Why is the SUB bunny positioned like that? Basic math tell's me X=200 (bunny pos.) + X=10.5 (sub bunny), should be 210.5. From watching in PIXI source, I see the reason is that parent matrix is added to Child. But, this makes really hard to work with nested sprites. If I want the subBanny with default size, positioned in 10.5 in bunny, I would have to manually calculate dimension and position parameters, so when matrix is added, it looks right? Shouldn't PIXI add parent matrix to child, only if The child already added to That parent... or something like that?