pub struct Transform {
pub position: Vec3,
pub rotation: Vec3,
pub scale: f32,
}Expand description
Fields§
§position: Vec3Position of the entity. In 2d, the last value of the Vec3 is used for z-ordering
rotation: Vec3Rotation of the entity
scale: f32Scale of the entity
Implementations§
Trait Implementations§
impl Component for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more