You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all I want to thank for your hard work on this great library.
There is my problem. I used getLocalPosition on container. Everything was okay until I changed rotation of container. Then it started to return strange values. Please check my little demo
Purple dot (child of rotating container) should follow local position of mouse. If container is rotating it is not working. However when container stops at 0 degrees dot will move to position of mouse.
Hello, first of all I want to thank for your hard work on this great library.
There is my problem. I used getLocalPosition on container. Everything was okay until I changed rotation of container. Then it started to return strange values. Please check my little demo
Purple dot (child of rotating container) should follow local position of mouse. If container is rotating it is not working. However when container stops at 0 degrees dot will move to position of mouse.
I compared code of versions 3.0.6 and 2.2.9
there is little difference
3.0.6
point.x = a11 * id * global.x + -a01 * id * global.x + (a12 * a01 - a02 * a11) * id;
point.y = a00 * id * global.y + -a10 * id * global.y + (-a12 * a00 + a02 * a10) * id;
2.2.9
point.x = a11 * id * global.x + -a01 * id * global.y + (a12 * a01 - a02 * a11) * id;
point.y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
That change was suggested here, however it looks like it is causing problems (I don't know if it is fixing other issues).
When I replaced x and y properties (as it is in version 2.2.9) it stared to behave normally.
Could you please check it?
The text was updated successfully, but these errors were encountered: