pub enum EmitterShape {
Point,
Sphere {
radius: f32,
},
Hemisphere {
radius: f32,
},
SphereVolume {
radius: f32,
},
Cone {
angle: f32,
length: f32,
},
Box {
half_extents: Vec3,
},
Disk {
radius: f32,
},
Ring {
inner: f32,
outer: f32,
},
Line {
a: Vec3,
b: Vec3,
},
Mesh {
sample_points: Vec<Vec3>,
},
Torus {
major_radius: f32,
minor_radius: f32,
},
}Expand description
Defines the 3-D region from which a burst emits.
Variants§
Point
Single point emission.
Sphere
Uniform sphere surface.
Hemisphere
Hemisphere surface pointing up (+Y).
SphereVolume
Solid sphere volume.
Cone
Cone: apex at origin, opening toward +Y.
Box
Axis-aligned box.
Disk
Flat disk on the XZ plane.
Ring
Ring (annulus) at y=0.
Line
Line segment from a to b.
Mesh
Mesh surface (uses pre-baked sample points).
Torus
Torus.
Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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