pub struct SteeringAgent {
pub position: Vec2,
pub velocity: Vec2,
pub orientation: f32,
pub max_speed: f32,
pub max_force: f32,
pub mass: f32,
pub radius: f32,
}Expand description
A moving agent with position, velocity, and physical limits.
Fields§
§position: Vec2§velocity: Vec2§orientation: f32§max_speed: f32§max_force: f32§mass: f32§radius: f32Implementations§
Trait Implementations§
Source§impl Clone for SteeringAgent
impl Clone for SteeringAgent
Source§fn clone(&self) -> SteeringAgent
fn clone(&self) -> SteeringAgent
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 SteeringAgent
impl RefUnwindSafe for SteeringAgent
impl Send for SteeringAgent
impl Sync for SteeringAgent
impl Unpin for SteeringAgent
impl UnsafeUnpin for SteeringAgent
impl UnwindSafe for SteeringAgent
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