pub struct ColliderSpawnSources<'a> {
pub spawners: Vec<ColliderSpawner<'a>>,
pub behaviors: Vec<&'a str>,
}Expand description
Every authored way a world creates collider-bearing props while it runs.
A Spawner over a SkinnedMesh is not here: a skinned copy claims a
pre-reserved render instance and carries no collider, so it never reaches
physics.
Fields§
§spawners: Vec<ColliderSpawner<'a>>Spawners copying a collider-bearing prop on a fixed cadence.
behaviors: Vec<&'a str>Names of the Behaviors with a spawn node over such a prop.
Trait Implementations§
Source§impl<'a> Clone for ColliderSpawnSources<'a>
impl<'a> Clone for ColliderSpawnSources<'a>
Source§fn clone(&self) -> ColliderSpawnSources<'a>
fn clone(&self) -> ColliderSpawnSources<'a>
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 moreSource§impl<'a> Debug for ColliderSpawnSources<'a>
impl<'a> Debug for ColliderSpawnSources<'a>
Source§impl<'a> Default for ColliderSpawnSources<'a>
impl<'a> Default for ColliderSpawnSources<'a>
Source§fn default() -> ColliderSpawnSources<'a>
fn default() -> ColliderSpawnSources<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for ColliderSpawnSources<'a>
impl<'a> PartialEq for ColliderSpawnSources<'a>
impl<'a> StructuralPartialEq for ColliderSpawnSources<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColliderSpawnSources<'a>
impl<'a> RefUnwindSafe for ColliderSpawnSources<'a>
impl<'a> Send for ColliderSpawnSources<'a>
impl<'a> Sync for ColliderSpawnSources<'a>
impl<'a> Unpin for ColliderSpawnSources<'a>
impl<'a> UnsafeUnpin for ColliderSpawnSources<'a>
impl<'a> UnwindSafe for ColliderSpawnSources<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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