Hello everybody,
would like a hint of you forum,
I like to picking objects in my world(one applet)?
I'm using these instructions:
SimpleVector dir = Interact2D.reproject2D3DWS (world.getCamera (), buffer, e.getX (), e.getY ());
Object [] res = world.calcMinDistanceAndObject3D (world.getCamera (). GetPosition (), dir, 1000 / * or whatever * /);
I can even take a 3D object, but not very accurately, need to click under the object3D to get your res [1].
after i use:
if (res [1] == Object3D) {
System.out.println ("I'm clicking on the object");
}
Thanks in advance