Enum bevy_rapier2d::plugin::PhysicsStages
source · pub enum PhysicsStages {
SyncBackend,
StepSimulation,
Writeback,
DetectDespawn,
}
Expand description
[StageLabel
] for each phase of the plugin.
Variants
SyncBackend
This stage runs the systems responsible for synchronizing (and
initializing) backend data structures with current component state.
These systems typically run at the after [CoreStage::Update
].
StepSimulation
The systems responsible for advancing the physics simulation, and
updating the internal state for scene queries.
These systems typically run immediately after PhysicsStages::SyncBackend
.
Writeback
The systems responsible for updating
[crate::geometry::collider::CollidingEntities
] and writing
the result of the last simulation step into our bevy_rapier
components and the [GlobalTransform
] component.
These systems typically run immediately after PhysicsStages::StepSimulation
.
DetectDespawn
The systems responsible for removing from Rapier the
rigid-bodies/colliders/joints which had their related bevy_rapier
components removed by the user (through component removal or despawn).
These systems typically run at the start of [CoreStage::Last
].
Trait Implementations
sourceimpl Clone for PhysicsStages
impl Clone for PhysicsStages
sourcefn clone(&self) -> PhysicsStages
fn clone(&self) -> PhysicsStages
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for PhysicsStages
impl Debug for PhysicsStages
sourceimpl Hash for PhysicsStages
impl Hash for PhysicsStages
sourceimpl PartialEq<PhysicsStages> for PhysicsStages
impl PartialEq<PhysicsStages> for PhysicsStages
sourcefn eq(&self, other: &PhysicsStages) -> bool
fn eq(&self, other: &PhysicsStages) -> bool
sourceimpl StageLabel for PhysicsStageswhere
Self: 'static,
impl StageLabel for PhysicsStageswhere
Self: 'static,
impl Eq for PhysicsStages
impl StructuralEq for PhysicsStages
impl StructuralPartialEq for PhysicsStages
Auto Trait Implementations
impl RefUnwindSafe for PhysicsStages
impl Send for PhysicsStages
impl Sync for PhysicsStages
impl Unpin for PhysicsStages
impl UnwindSafe for PhysicsStages
Blanket Implementations
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T
[ShaderType
] for self
. When used in [AsBindGroup
]
derives, it is safe to assume that all images in self
exist. Read moresourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read moreimpl<T> DynHash for Twhere
T: DynEq + Hash,
impl<T> DynHash for Twhere
T: DynEq + Hash,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.