public void rotateToPoint(Vector3f v3f) { for (int i = 0; i < getSelectionCircles().size(); i++) { Doodad d = getSelectionCircles().get(i).getDoodad(); Vector3f location = d.getLocation(); float rotation = (float) Math.atan2( (float) (v3f.getX() - location.getX()), (float) (v3f.getZ() - location.getZ())); d.setRotation(rotation); d.updateRotation(); } }