www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: FeberT on August 10, 2011, 03:50:25 PM

Title: How to get touched object 3D
Post 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. ;)
Title: Re: How to get touched object 3D
Post by: Nemetz on August 10, 2011, 04:13:29 PM
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);
Title: Re: How to get touched object 3D
Post by: FeberT on August 10, 2011, 04:18:42 PM
Thanks for the help
Title: Re: How to get touched object 3D
Post by: FeberT on August 10, 2011, 04:32:03 PM
I couldn't get this to work... theres a sample application that I can download and see working?
Thanks Again
Title: Re: How to get touched object 3D
Post by: FeberT on August 10, 2011, 05:10:20 PM
It's Working! I forgot to set the ColisionMode...