Jump to content

Graphics / Polygon / containsPoint


Yarchick1034
 Share

Recommended Posts

Hello everyone!

 

My question is about "containsPoint" in PIXI v8, I developed a drag'n'drop module for my game. I use graphics and containsPoint to map my mouse coordinates to a polygon, ellipse, etc.

 

In pixi v7.x.x everything works very well, a couple of days ago I started porting my engine to v8, all the features work fine too. But when I started testing my DnD I saw a strange behavior, maybe it's a new behavior in v8 and it's part of optimization. When moving the graphic to a different position, the movement is not registered for containsPoint.

 

To understand what I'm talking about, below are some examples:

https://jsfiddle.net/Yarchick1034/vw5h7sfr/126/

https://jsfiddle.net/Yarchick1034/c6v4ym2f/40/

 

Edited by Yarchick1034
for greater understanding
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...