how to check event touch on Object3D?

Started by ngvannam5, May 08, 2012, 09:39:58 AM

Previous topic - Next topic

ngvannam5

I have Object3D in skybox background. While I move camera then Ojbect3D move.
How to check event touch on Object3D miss?

EgonOlsen


ngvannam5

while touch on screen check width position of Object3D?

denzel

#3
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