Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2D sprite to bounding box hit test
#1
Is there a way to get elements inside a 2D rectangle?
I mean, probably I can draw an overly sprite for the rectangle following user's pointer, but after having screen U,V coordinates I'll need a hit test on elements that I don't know how to solve. Maybe getting a camera direction ray and move it along the edges, but that would not retrieve elements inside the rectangle.
Maybe a bounding box created from perpendicular plane to camera and long enough could do the job, but I am totally lost

Any tip about this?
  


Messages In This Thread
2D sprite to bounding box hit test - by BiMMate - 04-17-2024, 08:49 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)