www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: FeberT on August 10, 2011, 03:50:25 pm
-
Hello, I'm new to this engine and I dont know how to get the touched object 3d...
anyone could help? sorry for the bad english. ;)
-
Yes, just read in wiki about it.
http://www.jpct.net/wiki/index.php/Picking (http://www.jpct.net/wiki/index.php/Picking)
Here is little example:
SimpleVector dir = Interact2D.reproject2D3DWS(cam, fb, x, y)
.normalize();
Object[] res = world.calcMinDistanceAndObject3D(cam.getPosition(), dir,
distProjection);
-
Thanks for the help
-
I couldn't get this to work... theres a sample application that I can download and see working?
Thanks Again
-
It's Working! I forgot to set the ColisionMode...