Author Topic: Point picking with ray  (Read 457 times)

Offline teamer

  • byte
  • *
  • Posts: 1
    • View Profile
Point picking with ray
« on: June 05, 2014, 02:40:37 pm »
I can't seem to find any example for ray picking which returns a 3d coordinates of collision.

I have a camera flying over a plane/heightmap , i need to get the x,y,z of the heightmap/plane that is under the camera/object etc...

any tips where i can find an example?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Point picking with ray
« Reply #1 on: June 05, 2014, 02:50:36 pm »
The wiki has an example. It's for desktop jPCT, but the idea is the same: http://www.jpct.net/wiki/index.php/Picking