Struct rhusics_ecs::NextFrameSetupSystem[][src]

pub struct NextFrameSetupSystem<P, R, I, A, T, D> { /* fields omitted */ }

Setup the next frames positions and velocities.

Type parameters:

  • P: Positional quantity, usually Point2 or Point3
  • R: Rotational quantity, usually Basis2 or Quaternion
  • I: Inertia, usually Scalar or Matrix3
  • A: Angular velocity, usually Scalar or Vector3
  • T: Transform type (BodyPose2 or similar)

System function

fn(DeltaTime, Mass, T, ForceAccumulator) -> (ForceAccumulator, NextFrame<Velocity>, NextFrame<T>)

Methods

impl<P, R, I, A, T, D> NextFrameSetupSystem<P, R, I, A, T, D> where
    T: Pose<P, R>,
    P: EuclideanSpace,
    P::Scalar: BaseFloat,
    P::Diff: VectorSpace + InnerSpace + Debug,
    R: Rotation<P> + ApplyAngular<P::Scalar, A>,
    I: Inertia<Orientation = R> + Mul<A, Output = A>,
    A: Mul<P::Scalar, Output = A> + Zero + Clone + Copy,
    D: PhysicsTime<P::Scalar> + Default
[src]

Create system.

Trait Implementations

impl<'a, P, R, I, A, T, D> System<'a> for NextFrameSetupSystem<P, R, I, A, T, D> where
    T: Pose<P, R> + Component + Send + Sync + 'static,
    P: EuclideanSpace + Send + Sync + 'static,
    P::Scalar: BaseFloat + Send + Sync + 'static,
    P::Diff: VectorSpace + InnerSpace + Debug + Send + Sync + 'static,
    R: Rotation<P> + ApplyAngular<P::Scalar, A> + Send + Sync + 'static,
    I: Inertia<Orientation = R> + Mul<A, Output = A> + Send + Sync + 'static,
    A: Mul<P::Scalar, Output = A> + Zero + Clone + Copy + Send + Sync + 'static,
    D: PhysicsTime<P::Scalar> + Default + Send + Sync + 'static, 
[src]

The resource bundle required to execute this system. Read more

Executes the system with the required system data. Read more

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

Return the accessor from the [SystemData].

Sets up the Resources using Self::SystemData::setup.

Auto Trait Implementations

impl<P, R, I, A, T, D> Send for NextFrameSetupSystem<P, R, I, A, T, D> where
    A: Send,
    D: Send,
    I: Send,
    P: Send,
    R: Send,
    T: Send

impl<P, R, I, A, T, D> Sync for NextFrameSetupSystem<P, R, I, A, T, D> where
    A: Sync,
    D: Sync,
    I: Sync,
    P: Sync,
    R: Sync,
    T: Sync