Point picking with ray

Started by teamer, June 05, 2014, 02:40:37 PM

Previous topic - Next topic

teamer

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?

EgonOlsen

The wiki has an example. It's for desktop jPCT, but the idea is the same: http://www.jpct.net/wiki/index.php/Picking