dinther Posted May 28, 2015 Share Posted May 28, 2015 I have a container that contains another pixi element. A graphics object in this example. As pixi is a scene graph I can rotate the container and the grapics object contained within is rotated too.Now I attach a mousemove event to the graphics object and I convert the event coordinate to the graphics object like var pos = event.data.getLocalPosition(graphics); However, it appears to be that the coordinate system scales and translates but does not rotate. See this fiddle to illustrate. When you move the cursor along the length of the rectangle I expect no change in y and only a change in x. http://jsfiddle.net/sD8Tt/204/ What I require is event coordinates that are aligned with the graphics object. How do I do this or what am I doing wrong? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.