Struct rhusics_ecs::CurrentFrameUpdateSystem[][src]

pub struct CurrentFrameUpdateSystem<P, R, A, T> { /* fields omitted */ }

Current frame update system.

Will update positions and velocities for the current frame, based on NextFrame values.

Type parameters:

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

System function:

fn(NextFrame<Velocity>, NextFrame<T>) -> (Velocity, T)

Methods

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>, 
[src]

Create system.

Trait Implementations

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, 
[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, 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