pub struct BehaviorState {
pub direction: Vec2,
pub state_time: f32,
pub waypoint_index: usize,
pub internal_state: f32,
}Expand description
Current state of a behavior
Fields§
§direction: Vec2Current direction of movement
state_time: f32Time in current state
waypoint_index: usizePatrol waypoint index (for patrol behavior)
internal_state: f32Internal state value for deterministic behaviors
Trait Implementations§
Source§impl Clone for BehaviorState
impl Clone for BehaviorState
Source§fn clone(&self) -> BehaviorState
fn clone(&self) -> BehaviorState
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 BehaviorState
impl Debug for BehaviorState
Source§impl Default for BehaviorState
impl Default for BehaviorState
Source§fn default() -> BehaviorState
fn default() -> BehaviorState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BehaviorState
impl RefUnwindSafe for BehaviorState
impl Send for BehaviorState
impl Sync for BehaviorState
impl Unpin for BehaviorState
impl UnwindSafe for BehaviorState
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