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

pub struct GlobalTransform(pub Matrix4<f32>);

Performs a global transformation on the entity (transform from origin).

Used for rendering position and orientation.

If this component is used, and TransformSystem is not used, then make sure to clear the flags on the FlaggedStorage at the appropriate times (before updating any Transform in the frame). See documentation on FlaggedStorage for more information.

Methods

impl GlobalTransform
[src]

Checks whether each f32 of the GlobalTransform is finite (not NaN or inf).

impl GlobalTransform
[src]

Creates a new GlobalTransform in the form of an identity matrix.

Trait Implementations

impl Debug for GlobalTransform
[src]

Formats the value using the given formatter. Read more

impl Copy for GlobalTransform
[src]

impl Clone for GlobalTransform
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Component for GlobalTransform
[src]

Associated storage type for this component.

impl Default for GlobalTransform
[src]

Returns the "default value" for a type. Read more

impl From<[[f32; 4]; 4]> for GlobalTransform
[src]

Performs the conversion.

impl Into<[[f32; 4]; 4]> for GlobalTransform
[src]

Performs the conversion.

impl AsRef<[[f32; 4]; 4]> for GlobalTransform
[src]

Performs the conversion.

impl Borrow<[[f32; 4]; 4]> for GlobalTransform
[src]

Immutably borrows from an owned value. Read more

Auto Trait Implementations

impl Send for GlobalTransform

impl Sync for GlobalTransform