pub enum ParticleLocomotion {
Idle,
Moving,
Jumping,
Landing,
Sprinting,
}Expand description
Particle locomotion state — drives the cloud shape procedurally.
Variants§
Idle
Tight sphere, particles close together. Player is stationary.
Moving
Stretched ellipsoid in movement direction. Player is walking/running.
Jumping
Expanded sphere, particles spread out. Player is jumping/ascending.
Landing
Compressed disc, particles flatten. Player just landed.
Sprinting
Elongated stream, particles trail behind. Player is sprinting.
Implementations§
Source§impl ParticleLocomotion
impl ParticleLocomotion
Sourcepub fn shape_params(self) -> ParticleShapeParams
pub fn shape_params(self) -> ParticleShapeParams
Shape scale multipliers for the cloud [x_stretch, y_stretch, z_stretch, radius_scale]. Applied to the base sphere distribution to produce the locomotion-appropriate shape.
pub fn label(self) -> &'static str
Trait Implementations§
Source§impl Clone for ParticleLocomotion
impl Clone for ParticleLocomotion
Source§fn clone(&self) -> ParticleLocomotion
fn clone(&self) -> ParticleLocomotion
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 ParticleLocomotion
impl Debug for ParticleLocomotion
Source§impl Default for ParticleLocomotion
impl Default for ParticleLocomotion
Source§fn default() -> ParticleLocomotion
fn default() -> ParticleLocomotion
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParticleLocomotion
impl PartialEq for ParticleLocomotion
impl Copy for ParticleLocomotion
impl Eq for ParticleLocomotion
impl StructuralPartialEq for ParticleLocomotion
Auto Trait Implementations§
impl Freeze for ParticleLocomotion
impl RefUnwindSafe for ParticleLocomotion
impl Send for ParticleLocomotion
impl Sync for ParticleLocomotion
impl Unpin for ParticleLocomotion
impl UnsafeUnpin for ParticleLocomotion
impl UnwindSafe for ParticleLocomotion
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