pub enum BehaviorBlock {
Show 13 variants
Seek,
Flee,
Orbit,
AlignToVelocity,
AlignToSurfaceNormal,
Drift,
Wobble,
Settle,
Hover,
Tether,
Fuse,
Split,
ParticleLite,
}Expand description
Behavior block — steering/simulation behavior applied to particles.
Variants§
Seek
Flee
Orbit
AlignToVelocity
AlignToSurfaceNormal
Drift
Wobble
Settle
Hover
Tether
Fuse
Split
ParticleLite
Implementations§
Source§impl BehaviorBlock
impl BehaviorBlock
pub const ALL: &[BehaviorBlock]
pub fn name(&self) -> &'static str
Sourcepub fn compute_weight(&self) -> f32
pub fn compute_weight(&self) -> f32
GPU compute weight (relative cost, 1.0 = baseline).
Trait Implementations§
Source§impl Clone for BehaviorBlock
impl Clone for BehaviorBlock
Source§fn clone(&self) -> BehaviorBlock
fn clone(&self) -> BehaviorBlock
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 BehaviorBlock
impl Debug for BehaviorBlock
Source§impl<'de> Deserialize<'de> for BehaviorBlock
impl<'de> Deserialize<'de> for BehaviorBlock
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
Source§impl Hash for BehaviorBlock
impl Hash for BehaviorBlock
Source§impl PartialEq for BehaviorBlock
impl PartialEq for BehaviorBlock
Source§impl Serialize for BehaviorBlock
impl Serialize for BehaviorBlock
impl Copy for BehaviorBlock
impl Eq for BehaviorBlock
impl StructuralPartialEq for BehaviorBlock
Auto Trait Implementations§
impl Freeze for BehaviorBlock
impl RefUnwindSafe for BehaviorBlock
impl Send for BehaviorBlock
impl Sync for BehaviorBlock
impl Unpin for BehaviorBlock
impl UnsafeUnpin for BehaviorBlock
impl UnwindSafe for BehaviorBlock
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