• Post Reply Bookmark Topic Watch Topic
  • New Topic

m3g and pick in immediate mode!  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All:

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:

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!