I searched the whole internet, but I couldn't find something useful. How to do picking (like ray picking) in lwjgl in orthographic mode (2d)? I think this is less confusing than picking in 3d, but I really can't figure out how to do it. Picking for rectangles is easy because you can use the mouse coordinates and the quad coordinates and test if the mouse coords are inside the area of the quad. But my biggest problem is how to do this with rectangles, and circles? Or quads that looks like a circle because I use a texture of a circle (with transparent corners). Please can someone explain it to me?

  • 1
    \$\begingroup\$ You searched the whole internet!? D: I am impressed, but you must have been going so fast you missed this question here, which looks to be asking the same thing. (Are the answers helpful?) \$\endgroup\$
    – Anko
    Commented Mar 10, 2014 at 23:10
  • \$\begingroup\$ Anko's jokes aside, if you are struggling specifically with picking a circle, those duplicate close votes might be invalid. Is that the core of your question? \$\endgroup\$ Commented Mar 11, 2014 at 3:24
  • \$\begingroup\$ Yes indeed, circles and other round shapes are my biggest problem. \$\endgroup\$ Commented Mar 11, 2014 at 14:27


You must log in to answer this question.

Browse other questions tagged .