1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved getInteractionPoint returns bad points

Discussion in 'Client & Site Support' started by Exia, Jan 18, 2016.

  1. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    @Arbiter @Cloud
    I'm calling Interactable#getInteractionPoint() and it is occasionally returning terribly incorrect Points. For example: InteractablePoint[30909,-21685]

    I'm guessing it happens when the object is off screen, or something of that sort, but it would be better functionality for the method to return null in that case.

    This is also the root issue of that StackOverflow Error that happens when you move the mouse to an object every now and then.
     
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Nice job on finding the source of that issue, but you should be doing visibility checks before hand.
     
  3. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    Yeah, I noticed that too, it seems that my code was checking if the mouse was inside the object before doing this (if the mouse is on it already then it will be visible), but I had notted the contains by accident.
     

Share This Page

Loading...