These are chat archives for pixijs/pixi.js

20th
Jun 2016
Olav Lindekleiv
@oal
Jun 20 2016 20:24 UTC
Why is .pivot in in the range 0-1 for Sprites, and in pixels for Containers?
Ivan Popelyshev
@ivanpopelyshev
Jun 20 2016 22:03 UTC
Hello!
its anchor
.pivot for everything
.anchor in range 0-1 for sprites
if you want to add anchor for container, then its a problem, because we really dont know width/height of it
it is calculated based on all children elements