www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: teamer on June 05, 2014, 02:40:37 pm

Title: Point picking with ray
Post by: teamer 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?
Title: Re: Point picking with ray
Post by: EgonOlsen 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 (http://www.jpct.net/wiki/index.php/Picking)