pub struct Particle {
pub pos: Vec2,
pub vel: Vec2,
pub trail: VecDeque<Vec2>,
pub life_state: LifeState,
pub time_elapsed: Duration,
pub config: ParticleConfig,
}
Expand description
The struct representing a single particle
Fields§
§pos: Vec2
§vel: Vec2
§trail: VecDeque<Vec2>
Records a trail_length
of previous positions of the Particle
life_state: LifeState
§time_elapsed: Duration
Duration
since initialization of this Particle
config: ParticleConfig
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Particle
impl RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl UnwindSafe for Particle
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