Struct rhusics_ecs::CurrentFrameUpdateSystem
source · pub struct CurrentFrameUpdateSystem<P, R, A, T> { /* private fields */ }
Expand description
Current frame update system.
Will update positions and velocities for the current frame, based on NextFrame
values.
Type parameters:
P
: Positional quantity, usuallyPoint2
orPoint3
R
: Rotational quantity, usuallyBasis2
orQuaternion
A
: Angular velocity, usuallyScalar
orVector3
T
: Transform type (BodyPose2
or similar)
System function:
fn(NextFrame<Velocity>, NextFrame<T>) -> (Velocity, T)
Implementations
sourceimpl<P, R, A, T> CurrentFrameUpdateSystem<P, R, A, T>where
P: EuclideanSpace,
P::Diff: VectorSpace + InnerSpace + Debug,
P::Scalar: BaseFloat,
R: Rotation<P>,
A: Clone + Zero,
T: Pose<P, R>,
impl<P, R, A, T> CurrentFrameUpdateSystem<P, R, A, T>where
P: EuclideanSpace,
P::Diff: VectorSpace + InnerSpace + Debug,
P::Scalar: BaseFloat,
R: Rotation<P>,
A: Clone + Zero,
T: Pose<P, R>,
Trait Implementations
sourceimpl<'a, P, R, A, T> System<'a> for CurrentFrameUpdateSystem<P, R, A, T>where
P: EuclideanSpace + Send + Sync + 'static,
P::Diff: VectorSpace + InnerSpace + Debug + Send + Sync + 'static,
P::Scalar: BaseFloat + Send + Sync + 'static,
R: Rotation<P> + Send + Sync + 'static,
A: Clone + Zero + Send + Sync + 'static,
T: Pose<P, R> + Component + Clone + Send + Sync + 'static,
impl<'a, P, R, A, T> System<'a> for CurrentFrameUpdateSystem<P, R, A, T>where
P: EuclideanSpace + Send + Sync + 'static,
P::Diff: VectorSpace + InnerSpace + Debug + Send + Sync + 'static,
P::Scalar: BaseFloat + Send + Sync + 'static,
R: Rotation<P> + Send + Sync + 'static,
A: Clone + Zero + Send + Sync + 'static,
T: Pose<P, R> + Component + Clone + Send + Sync + 'static,
type SystemData = (Storage<'a, PhysicalEntity<<P as EuclideanSpace>::Scalar>, Fetch<'a, MaskedStorage<PhysicalEntity<<P as EuclideanSpace>::Scalar>>>>, Storage<'a, Velocity<<P as EuclideanSpace>::Diff, A>, FetchMut<'a, MaskedStorage<Velocity<<P as EuclideanSpace>::Diff, A>>>>, Storage<'a, NextFrame<Velocity<<P as EuclideanSpace>::Diff, A>>, Fetch<'a, MaskedStorage<NextFrame<Velocity<<P as EuclideanSpace>::Diff, A>>>>>, Storage<'a, T, FetchMut<'a, MaskedStorage<T>>>, Storage<'a, NextFrame<T>, Fetch<'a, MaskedStorage<NextFrame<T>>>>)
type SystemData = (Storage<'a, PhysicalEntity<<P as EuclideanSpace>::Scalar>, Fetch<'a, MaskedStorage<PhysicalEntity<<P as EuclideanSpace>::Scalar>>>>, Storage<'a, Velocity<<P as EuclideanSpace>::Diff, A>, FetchMut<'a, MaskedStorage<Velocity<<P as EuclideanSpace>::Diff, A>>>>, Storage<'a, NextFrame<Velocity<<P as EuclideanSpace>::Diff, A>>, Fetch<'a, MaskedStorage<NextFrame<Velocity<<P as EuclideanSpace>::Diff, A>>>>>, Storage<'a, T, FetchMut<'a, MaskedStorage<T>>>, Storage<'a, NextFrame<T>, Fetch<'a, MaskedStorage<NextFrame<T>>>>)
The resource bundle required to execute this system. Read more
sourcefn run(&mut self, data: Self::SystemData)
fn run(&mut self, data: Self::SystemData)
Executes the system with the required system
data. Read more
sourcefn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
sourcefn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData
.Auto Trait Implementations
impl<P, R, A, T> RefUnwindSafe for CurrentFrameUpdateSystem<P, R, A, T>where
A: RefUnwindSafe,
P: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, R, A, T> Send for CurrentFrameUpdateSystem<P, R, A, T>where
A: Send,
P: Send,
R: Send,
T: Send,
impl<P, R, A, T> Sync for CurrentFrameUpdateSystem<P, R, A, T>where
A: Sync,
P: Sync,
R: Sync,
T: Sync,
impl<P, R, A, T> Unpin for CurrentFrameUpdateSystem<P, R, A, T>where
A: Unpin,
P: Unpin,
R: Unpin,
T: Unpin,
impl<P, R, A, T> UnwindSafe for CurrentFrameUpdateSystem<P, R, A, T>where
A: UnwindSafe,
P: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<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
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
impl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
sourcefn run(&mut self, res: &'a Resources, _: &ThreadPool)
fn run(&mut self, res: &'a Resources, _: &ThreadPool)
Runs the system/group of systems. Possibly in parallel depending
on how the structure is set up. Read more