android - How to detect which 3d object has been touched? -


assume have 3 cubes in random location/rotation visible in viewport. want able detect if of cube has been touched if touch ( or click on emulator) specific cube. if touch empty space instead of cube, should detected. know there ontouchevent callback over-ride on view gives me x,y coordinate of touch occurred. looking opengl-es based solution , more java based android application.

there several objects (or none) on x / y coordinate. should find them all, , if there any, check z-coordinate see 1 closest viewport (and 1 touched).


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -