Jump to content

Get worldX and worldY of activePointer.positionDown


ForgeableSum
 Share

Recommended Posts

I can easily get the worldX and worldY position of the active pointer when it's in any state (down, up, neither):

 

game.input.activePointer.worldX

game.input.activePointer.worldY

 

But how do I get the world-relative position of x and y when the pointer was last down? The following does not give world-relative x and y:

 

game.input.activePointer.positionDown

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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