pub struct Cluster {
pub id: usize,
pub bounds: ClusterBounds,
pub polygons: Vec<PolyRef>,
pub portals: Vec<Portal>,
pub center: Vec3,
pub walkable: bool,
}Expand description
A cluster of navigation polygons
Fields§
§id: usizeUnique cluster ID
bounds: ClusterBoundsBounding box of the cluster
polygons: Vec<PolyRef>Polygons contained in this cluster
portals: Vec<Portal>Entry/exit points to other clusters
center: Vec3Center point of the cluster
walkable: boolWhether this cluster is walkable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnsafeUnpin for Cluster
impl UnwindSafe for Cluster
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more