can anyone tell me how can i pass rhe x,y coordinate of the pointerPrerssed(), to the pick(-1, , ,camera, ray) !
i just want to know how collide with the cubes that im creating randomly so i can touch them thenm they disappear. i cant use retained or world. thats hwy i want im using iimmeidate mode cos of hte wireframe engine im using
im creating the meshes and adding them in a group.addChild() in the init section! but as im using immediate mode i can’t add the camera in hte group! so i didnt!
bellow: the x. and y are assigned to global variables and the checkHit() was inserted into the pointerPressed() cos when i add it in the run( ) IT GIVES AN ERROR (
these are the funcitons:
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads