pub enum EmitterShape {
Point,
Cone {
half_angle: f32,
},
Sphere {
radius: f32,
},
Box {
half_extents: [f32; 3],
},
}Expand description
Emitter shape that controls where and how particles are emitted.
Variants§
Point
Point emitter: all particles originate from a single point.
Cone
Cone emitter: particles emitted within a cone of given half-angle (radians).
Sphere
Sphere emitter: particles start at random positions on a sphere surface.
Box
Box emitter: particles emitted from random positions inside an AABB.
Trait Implementations§
Source§impl Clone for EmitterShape
impl Clone for EmitterShape
Source§fn clone(&self) -> EmitterShape
fn clone(&self) -> EmitterShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmitterShape
impl Debug for EmitterShape
impl Copy for EmitterShape
Auto Trait Implementations§
impl Freeze for EmitterShape
impl RefUnwindSafe for EmitterShape
impl Send for EmitterShape
impl Sync for EmitterShape
impl Unpin for EmitterShape
impl UnsafeUnpin for EmitterShape
impl UnwindSafe for EmitterShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more