p5js-screenPosition
p5js-screenPosition copied to clipboard
can I also use this reversely? knowing canvas position and receiving position in 3d space?
can I also use this reversely? knowing canvas position and receiving position in 3d space?
This functionality is not implemented because in 3d space it would not result in a single location. It should be possible to implement it in a way that you give the position on the screen (x, y) and a desired z-coordinate. I just haven't done this yet ...