pub enum ParticleShape {
Polygon {
sides: u8,
},
Ring {
thickness: f32,
},
Capsule {
aspect: f32,
},
Soft {
hardness: f32,
},
Quad {
aspect: f32,
},
}Expand description
Built-in analytic particle silhouettes.
Variants§
Polygon
Regular polygon with 3..=32 sides.
Ring
Annulus with relative thickness in (0,1].
Capsule
Rounded velocity-oriented capsule, aspect in 1..=64.
Soft
Soft-edged circle, hardness in 0..=1.
Quad
Rotated rectangle, aspect in (0,64].
Trait Implementations§
Source§impl Clone for ParticleShape
impl Clone for ParticleShape
impl Copy for ParticleShape
Source§impl Debug for ParticleShape
impl Debug for ParticleShape
Source§impl PartialEq for ParticleShape
impl PartialEq for ParticleShape
impl StructuralPartialEq for ParticleShape
Auto Trait Implementations§
impl Forget for ParticleShape
impl Freeze for ParticleShape
impl RefUnwindSafe for ParticleShape
impl Send for ParticleShape
impl Sync for ParticleShape
impl Unpin for ParticleShape
impl UnsafeUnpin for ParticleShape
impl UnwindSafe for ParticleShape
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