pub struct OrcaAgent2D { /* private fields */ }Expand description
Crowd agent state for 2D Reciprocal Velocity Obstacles (ORCA / RVO2).
Implementations§
Source§impl OrcaAgent2D
Constructors for OrcaAgent2D.
impl OrcaAgent2D
Constructors for OrcaAgent2D.
Source§impl OrcaAgent2D
Implements impl #impl_generics #name #ty_generics #where_clause.
impl OrcaAgent2D
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_position(&self) -> Vec2
pub fn get_mut_position(&mut self) -> &mut Vec2
pub fn set_position(&mut self, val: Vec2) -> &mut Self
pub fn get_velocity(&self) -> Vec2
pub fn get_mut_velocity(&mut self) -> &mut Vec2
pub fn set_velocity(&mut self, val: Vec2) -> &mut Self
pub fn get_preferred_velocity(&self) -> Vec2
pub fn get_mut_preferred_velocity(&mut self) -> &mut Vec2
pub fn set_preferred_velocity(&mut self, val: Vec2) -> &mut Self
pub fn get_radius(&self) -> f32
pub fn get_mut_radius(&mut self) -> &mut f32
pub fn set_radius(&mut self, val: f32) -> &mut Self
pub fn get_max_speed(&self) -> f32
pub fn get_mut_max_speed(&mut self) -> &mut f32
pub fn set_max_speed(&mut self, val: f32) -> &mut Self
pub fn get_neighbor_dist(&self) -> f32
pub fn get_mut_neighbor_dist(&mut self) -> &mut f32
pub fn set_neighbor_dist(&mut self, val: f32) -> &mut Self
pub fn get_time_horizon(&self) -> f32
pub fn get_mut_time_horizon(&mut self) -> &mut f32
pub fn set_time_horizon(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for OrcaAgent2D
impl Clone for OrcaAgent2D
impl Copy for OrcaAgent2D
Source§impl Debug for OrcaAgent2D
impl Debug for OrcaAgent2D
Source§impl PartialEq for OrcaAgent2D
impl PartialEq for OrcaAgent2D
impl StructuralPartialEq for OrcaAgent2D
Auto Trait Implementations§
impl Forget for OrcaAgent2D
impl Freeze for OrcaAgent2D
impl Move for OrcaAgent2D
impl RefUnwindSafe for OrcaAgent2D
impl Send for OrcaAgent2D
impl Sync for OrcaAgent2D
impl Unpin for OrcaAgent2D
impl UnsafeUnpin for OrcaAgent2D
impl UnwindSafe for OrcaAgent2D
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