yava Posted June 6, 2017 Share Posted June 6, 2017 Hi, I need detect mouse over on sectors of Circle, so standard method pointerover - not work on corners of sectors. How I detect this? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 6, 2017 Share Posted June 6, 2017 Either separate sectors into graphics, either do math. You can get local coords with "even.data.getLocalPosition(myGraphics)", then you can find the corresponding sector with math. Quote Link to comment Share on other sites More sharing options...
yava Posted June 6, 2017 Author Share Posted June 6, 2017 Thaks, is it plugin for this in pixi? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 6, 2017 Share Posted June 6, 2017 No, its in vanilla: http://pixijs.download/release/docs/PIXI.interaction.InteractionEvent.html http://pixijs.download/release/docs/PIXI.interaction.InteractionData.html You get InteractionEvent in any mouseMove/mouseOver event. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.