[][src]Struct amethyst_core::transform::components::Parent

pub struct Parent {
    pub entity: Entity,

Component for defining a parent entity.

The entity with this component has a parent, rather than is a parent.

If the parent entity contains a transform, then the child's transform will be applied relative to the parent's transform. For example, if a parent rotates 45 degrees around the Z axis, then the child's coordinate system will start out also rotated by 45 degrees around the Z axis.

If the parent entity has its own parent (and so on) then the transforms will all be applied in order from the oldest ancestor to the child.


entity: Entity

The parent entity


impl Parent[src]

pub fn new(entity: Entity) -> Self[src]

Constructs a new Parent.

Trait Implementations

impl Clone for Parent[src]

impl Component for Parent[src]

type Storage = FlaggedStorage<Self, DenseVecStorage<Self>>

Associated storage type for this component.

impl Debug for Parent[src]

impl Eq for Parent[src]

impl Ord for Parent[src]

impl Parent for Parent[src]

impl PartialEq<Parent> for Parent[src]

impl PartialOrd<Parent> for Parent[src]

impl StructuralEq for Parent[src]

impl StructuralPartialEq for Parent[src]

Auto Trait Implementations

impl RefUnwindSafe for Parent

impl Send for Parent

impl Sync for Parent

impl Unpin for Parent

impl UnwindSafe for Parent

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

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> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,