pub fn _intersect(&self, other: &AABB) -> bool {
        if (other.pos.x >= self.pos.x + self.size_x)
            || (other.pos.x + other.size_x <= self.pos.x)
            || (other.pos.y >= self.pos.y + self.size_y)
            || (other.pos.y + other.size_y <= self.pos.y)
            || (other.pos.z >= self.pos.z + self.size_z)
            || (other.pos.z + other.size_z <= self.pos.z)
        {
            return false;
        } else {
            return true;
        }
    }
/// return true is the AABB box intersect with the other box
return true is the AABB box intersect with the other box
return true is the AABB box intersect with the other box
pub fn _intersect(&self, other: &AABB) -> bool {
        if (other.pos.x >= self.pos.x + self.size_x)
            || (other.pos.x + other.size_x <= self.pos.x)
            || (other.pos.y >= self.pos.y + self.size_y)
            || (other.pos.y + other.size_y <= self.pos.y)
            || (other.pos.z >= self.pos.z + self.size_z)
            || (other.pos.z + other.size_z <= self.pos.z)
        {
            return false;
        } else {
            return true;
        }
    }
pub fn _intersect ( & self , other : & AABB ) -> bool { if ( other . pos . x >= self . pos . x + self . size_x ) || ( other . pos . x + other . size_x <= self . pos . x ) || ( other . pos . y >= self . pos . y + self . size_y ) || ( other . pos . y + other . size_y <= self . pos . y ) || ( other . pos . z >= self . pos . z + self . size_z ) || ( other . pos . z + other . size_z <= self . pos . z ) { return false ; } else { return true ; } }
return true is the AABB box intersect with the other box
return true is the AABB box intersect with the other box
&self
other
&AABB
&self
other
&AABB