if(type[i]==treeleavestype||type[i]==bushtype){
moved=DoRotation(model[i].boundingspherecenter,0,yaw[i],0);
if(frustum.SphereInFrustum(position[i].x+moved.x,position[i].y+moved.y,position[i].z+moved.z,model[i].boundingsphereradius)){
if(type[i]==treeleavestype||type[i]==bushtype){
moved=DoRotation(model[i].boundingspherecenter,0,yaw[i],0);
if(frustum.SphereInFrustum(position[i].x+moved.x,position[i].y+moved.y,position[i].z+moved.z,model[i].boundingsphereradius)){