pub struct FlowField {
pub width: usize,
pub height: usize,
pub flow: Vec<FlowVector>,
pub cost: Vec<f32>,
pub goal: (usize, usize),
}Expand description
A flow field: precomputed for a single goal, steers any number of agents.
Fields§
§width: usize§height: usize§flow: Vec<FlowVector>§cost: Vec<f32>§goal: (usize, usize)Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlowField
impl RefUnwindSafe for FlowField
impl Send for FlowField
impl Sync for FlowField
impl Unpin for FlowField
impl UnsafeUnpin for FlowField
impl UnwindSafe for FlowField
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