[][src]Struct amethyst_physics::objects::PhysicsAttachment

pub struct PhysicsAttachment<N: PtReal> { /* fields omitted */ }

This component allows to resolve an Entity transformation during the physics sub stepping.

Each physics sub step, the RigidBody moves, and if you have an Area attached to it, or a kinematic body, is it necessary to move it also each sub step, in order to have a correct physics behaviour.

This component is useful only for game play implementation purposes, so it's not necessary in any way for rendering purposes.

Is necessary to also use the component Parent.

Trait Implementations

impl<N: PtReal> Default for PhysicsAttachment<N>[src]

impl<N: PtReal> Component for PhysicsAttachment<N>[src]

type Storage = DenseVecStorage<Self>

Associated storage type for this component.

Auto Trait Implementations

impl<N> Sync for PhysicsAttachment<N> where
    N: Scalar

impl<N> Send for PhysicsAttachment<N> where
    N: Scalar

impl<N> Unpin for PhysicsAttachment<N> where
    N: Scalar + Unpin

impl<N> UnwindSafe for PhysicsAttachment<N> where
    N: Scalar + UnwindSafe

impl<N> RefUnwindSafe for PhysicsAttachment<N> where
    N: RefUnwindSafe + Scalar

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Any for T where
    T: Any

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> TryDefault for T where
    T: Default