www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: ngvannam5 on May 08, 2012, 09:39:58 am
-
I have Object3D in skybox background. While I move camera then Ojbect3D move.
How to check event touch on Object3D miss?
-
I don't get the question... ???
-
while touch on screen check width position of Object3D?
-
Do you mean to "pick" a object3d?
if so ,search mouse pick in forum for more details
set the collision mode in your object3d and then
SimpleVector simpleVector = Interact2D.reproject2D3DWS(
camera, frameBuffer, touchX, touchY).normalize();
Object[] ii = world.calcMinDistanceAndObject3D(camera
.getPosition(), simpleVector, 10000);
in ii[1] that's the object3d which be touched or null if nothing is been touched.
------------------------
Sorry i didnot get your question after a review