It worked like a charm!
I would say I love you Egon, but I'm sure you would ban me for declaring you a big a love statement.. ;-)
One last thing..
To get a really nice marking on the ground, would the right way not be to center the markerProjector over where the user is pointing with the mouse ?? I cant getting it to look really great.
I use this for the mouse
It seems to work great, I tried setting the projector to the location and then moving the camera up.. not really working like i thought it would
I would say I love you Egon, but I'm sure you would ban me for declaring you a big a love statement.. ;-)
One last thing..
To get a really nice marking on the ground, would the right way not be to center the markerProjector over where the user is pointing with the mouse ?? I cant getting it to look really great.
I use this for the mouse
Code Select
/**
*
* @param world
* @param cam
* @param buffer
* @return
*/
public SimpleVector get3DCoordinate(World world, Camera cam, FrameBuffer buffer) {
SimpleVector rezult = null;
if (cam != null && buffer != null) {
SimpleVector rayTemp = Interact2D.reproject2D3DWS(cam, buffer, getMouseX(), getMouseY()).normalize();
float distance = world.calcMinDistance(cam.getPosition(), rayTemp, 20000);
rezult = new SimpleVector(cam.getPosition());
rayTemp.scalarMul(distance);
rezult.add(rayTemp);
}
return rezult;
}
It seems to work great, I tried setting the projector to the location and then moving the camera up.. not really working like i thought it would