Hi,
I still get a "null" object.
I set the collision mode as .setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
and .setCollisionOptimization(true).
In the touch event handler I call
SimpleVector ray = reproject2D3DWS(cam, fb, (int)xpos, (int)ypos, toFill).normalize();
where the function is written as in the post you linked.
Howevere, when I then call
Object[] result = objects[i].world.calcMinDistanceAndObject3D(cam.getPosition(), ray, 10000);
but result[1] is always NULL, even if I point to the marker and the cube occupies the entire screen.
Probably I am missing something when I pass the matrix from native code to java code. For instance I never set the camera position.
Any idea?
thanks a lot