pub struct FlockingAgent {
pub position: Vec2,
pub velocity: Vec2,
pub max_speed: f32,
pub radius: f32,
}Expand description
A flocking agent (separate from SteeringAgent to hold flock-specific data).
Fields§
§position: Vec2§velocity: Vec2§max_speed: f32§radius: f32Trait Implementations§
Source§impl Clone for FlockingAgent
impl Clone for FlockingAgent
Source§fn clone(&self) -> FlockingAgent
fn clone(&self) -> FlockingAgent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlockingAgent
impl RefUnwindSafe for FlockingAgent
impl Send for FlockingAgent
impl Sync for FlockingAgent
impl Unpin for FlockingAgent
impl UnsafeUnpin for FlockingAgent
impl UnwindSafe for FlockingAgent
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