Sorry, my bad... I was using the old library in my another pc... Din't notice there was an update. Thanks.
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.
Show posts Menu
Camera cam = world.getCamera();
cam.moveCamera(Camera.CAMERA_MOVEOUT, 50f);
cam.lookAt(new SimpleVector(0, 0, 0));
SimpleVector v3 = Interact2D.reproject2D3DWS(world.getCamera(), frame, 200, 650, 50f);
object.translate(v3.x, v3.y, 0);
SimpleVector tempVec = Interact2D.reproject2D3DWS(camera, buffer, x, y).normalize();
float ratio = tempVec.z / 50f;
float vx = tempVec.x / ratio;
float vy = tempVec.y / ratio;
float vz = tempVec.z / ratio;
SimpleVector v3 = new SimpleVector(vx, vy, vz);
object.translate(v3.x, v3.y, 0);
Page created in 0.012 seconds with 8 queries.