pub enum FracturePattern {
Whole,
Chunks {
cell: u32,
},
Shards {
plates: u32,
},
}Expand description
DT.5 — how a detached region breaks apart before it falls, keyed
by material in a debris system’s side table (deliberately NOT a
Material field — the render palette stays render-only).
Variants§
Whole
One piece — the default for unmapped materials.
Chunks
Rounded rubble (stone): jittered-Voronoi cells on a grid of
roughly cell-voxel spacing. cell is clamped to ≥ 2.
Shards
Sharp plates (glass/crystal): the region sliced by 1–7
near-parallel planes of one random orientation into plates
slabs (clamped to 2..=8), boundaries jittered.
Trait Implementations§
Source§impl Clone for FracturePattern
impl Clone for FracturePattern
Source§fn clone(&self) -> FracturePattern
fn clone(&self) -> FracturePattern
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 moreimpl Copy for FracturePattern
Source§impl Debug for FracturePattern
impl Debug for FracturePattern
impl Eq for FracturePattern
Source§impl Hash for FracturePattern
impl Hash for FracturePattern
Source§impl PartialEq for FracturePattern
impl PartialEq for FracturePattern
impl StructuralPartialEq for FracturePattern
Auto Trait Implementations§
impl Freeze for FracturePattern
impl RefUnwindSafe for FracturePattern
impl Send for FracturePattern
impl Sync for FracturePattern
impl Unpin for FracturePattern
impl UnsafeUnpin for FracturePattern
impl UnwindSafe for FracturePattern
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