Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SpiRaiL

Pages: [1]
1
Support / Re: How to do 2D click to 3D object picking?
« on: April 13, 2011, 11:45:29 pm »
ok, so i followed the whole thread and have it working as expected.

Now i want to do things with the object that i picked, but i have many objects.

I have a class "box" and i extend the object3D class.

and then i pick one. But i want to be able to drag that specific box around the screen.
If i to getID on a box it has the id = 0;

but when i cast the result for the picker, and do getID it has the id 1.
Should that make sense?

Really, i want to "pick" my box class, not the object in the super class (im not a Java expert, so maybe i dont know what im talking about).

Pages: [1]