Struct amethyst_rhusics::PoseTransformSyncSystem [−][src]
pub struct PoseTransformSyncSystem<P, R> { /* fields omitted */ }
System that copies transform information from BodyPose
in rhusics into Transform
in amethyst.
Type parameters:
P
: Positional quantity (Point2<f32>
orPoint3<f32>
in most scenarios).R
: Rotational quantity (Basis2<f32>
orQuaternion<f32>
in most scenarios).
Methods
impl<P, R> PoseTransformSyncSystem<P, R>
[src]
impl<P, R> PoseTransformSyncSystem<P, R>
pub fn new() -> Self
[src]
pub fn new() -> Self
Create new system
pub fn without_rotation(self) -> Self
[src]
pub fn without_rotation(self) -> Self
Disable rotation sync
pub fn without_translation(self) -> Self
[src]
pub fn without_translation(self) -> Self
Disable translation sync
Trait Implementations
impl<'a, P, R> System<'a> for PoseTransformSyncSystem<P, R> where
P: EuclideanSpace<Scalar = f32> + Convert<Output = Vector3<f32>> + Send + Sync + 'static,
R: Rotation<P> + Convert<Output = Quaternion<f32>> + Send + Sync + 'static,
[src]
impl<'a, P, R> System<'a> for PoseTransformSyncSystem<P, R> where
P: EuclideanSpace<Scalar = f32> + Convert<Output = Vector3<f32>> + Send + Sync + 'static,
R: Rotation<P> + Convert<Output = Quaternion<f32>> + Send + Sync + 'static,
type SystemData = (ReadStorage<'a, BodyPose<P, R>>, WriteStorage<'a, Transform>)
The resource bundle required to execute this system. Read more
fn run(&mut self, data: Self::SystemData)
[src]
fn run(&mut self, data: Self::SystemData)
Executes the system with the required system data. Read more
fn 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
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the [SystemData
].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)
Sets up the Resources
using Self::SystemData::setup
.
Auto Trait Implementations
impl<P, R> Send for PoseTransformSyncSystem<P, R> where
P: Send,
R: Send,
impl<P, R> Send for PoseTransformSyncSystem<P, R> where
P: Send,
R: Send,
impl<P, R> Sync for PoseTransformSyncSystem<P, R> where
P: Sync,
R: Sync,
impl<P, R> Sync for PoseTransformSyncSystem<P, R> where
P: Sync,
R: Sync,