[][src]Struct bevy::prelude::Transform

pub struct Transform {
    pub value: Mat4,
    pub sync: bool,
}

Fields

value: Mat4sync: bool

Implementations

impl Transform[src]

pub fn identity() -> Transform[src]

pub fn new(value: Mat4) -> Transform[src]

pub fn new_sync_disabled(value: Mat4) -> Transform[src]

This creates a new LocalToWorld transform with the sync field set to false. While sync is false, position, rotation, and scale components will not be synced to the transform. This is helpful if you want to manually set the transform to a value (ex: Mat4::face_toward)

Trait Implementations

impl Clone for Transform[src]

impl Copy for Transform[src]

impl Debug for Transform[src]

impl Default for Transform[src]

impl DeserializeProperty for Transform[src]

impl Display for Transform[src]

impl PartialEq<Transform> for Transform[src]

impl Properties for Transform[src]

impl Property for Transform[src]

impl RenderResources for Transform[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

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

impl<T> Downcast for T where
    T: Any

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

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

impl<T> FromResources for T where
    T: Default
[src]

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

impl<P> PropertiesVal for P where
    P: Properties
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,