pub struct Transform {
pub position: Vec3,
pub orientation: Quat,
pub scale: Vec3,
}Expand description
A world-space placement: position, orientation, and (optionally) scale. 一个世界空间中的放置:位置、朝向和(可选的)缩放。
Scale defaults to one and is intentionally distinct from position so a renderer or physics step can ignore it without ambiguity. 缩放默认为 1,并刻意与位置区分开,以便渲染器或物理步进能够毫无歧义地忽略它。
Fields§
§position: Vec3§orientation: Quat§scale: Vec3Implementations§
Trait Implementations§
impl Copy for Transform
impl StructuralPartialEq 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 UnsafeUnpin 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