pub enum SpawnShape {
Point,
Sphere {
radius: f32,
},
Box {
extents: [f32; 3],
},
Cone {
radius: f32,
angle_radians: f32,
},
Ring {
radius: f32,
thickness: f32,
},
Line {
length: f32,
},
MeshSurface {
mesh_asset: String,
},
VolumeTexture {
texture_asset: String,
},
}Expand description
Spawn shape — spatial distribution for particle emission.
Variants§
Trait Implementations§
Source§impl Clone for SpawnShape
impl Clone for SpawnShape
Source§fn clone(&self) -> SpawnShape
fn clone(&self) -> SpawnShape
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 SpawnShape
impl Debug for SpawnShape
Source§impl Default for SpawnShape
impl Default for SpawnShape
Source§fn default() -> SpawnShape
fn default() -> SpawnShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpawnShape
impl<'de> Deserialize<'de> for SpawnShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpawnShape
impl RefUnwindSafe for SpawnShape
impl Send for SpawnShape
impl Sync for SpawnShape
impl Unpin for SpawnShape
impl UnsafeUnpin for SpawnShape
impl UnwindSafe for SpawnShape
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