pub struct Grain {
pub pos: [f32; 3],
pub vel: [f32; 3],
pub age: f32,
pub src: u8,
}Expand description
One plume grain.
Fields§
§pos: [f32; 3]Position relative to the vent (z up), in the scene’s length unit.
vel: [f32; 3]§age: f32Seconds since launch.
src: u8Which vent (or impact) launched it.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Grain
impl Freeze for Grain
impl Move for Grain
impl RefUnwindSafe for Grain
impl Send for Grain
impl Sync for Grain
impl Unpin for Grain
impl UnsafeUnpin for Grain
impl UnwindSafe for Grain
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