pub struct EnemyInput {
pub position: Vec3,
pub forward: Vec3,
pub up: Vec3,
pub patrol_goal: Vec3,
pub target: Option<Track>,
pub health_fraction: f32,
pub weapon_ready: bool,
pub alive: bool,
}Fields§
§position: Vec3§forward: Vec3§up: Vec3Plane normal: Y for ground-based 3D, Z for a top-down 2D game.
patrol_goal: Vec3§target: Option<Track>Last known target position only. A hearing track never permits attack.
health_fraction: f32§weapon_ready: bool§alive: boolTrait Implementations§
Source§impl Clone for EnemyInput
impl Clone for EnemyInput
Source§fn clone(&self) -> EnemyInput
fn clone(&self) -> EnemyInput
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 moreSource§impl Debug for EnemyInput
impl Debug for EnemyInput
impl Copy for EnemyInput
Auto Trait Implementations§
impl Freeze for EnemyInput
impl RefUnwindSafe for EnemyInput
impl Send for EnemyInput
impl Sync for EnemyInput
impl Unpin for EnemyInput
impl UnwindSafe for EnemyInput
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