pub struct UnityNodeTransform {
pub position: [f32; 3],
pub rotation: [f32; 4],
pub scale: [f32; 3],
}Expand description
The local transform of a Unity node, pre-converted to Unity’s left-handed coordinate system.
Regardless of whether the source glTF node used a matrix or TRS properties,
this always holds a decomposed TRS ready to hand to UnityEngine.Transform.
Fields§
§position: [f32; 3]Local position — X negated relative to glTF.
rotation: [f32; 4]Local rotation as a unit quaternion [x, y, z, w] — X and W negated relative to glTF.
scale: [f32; 3]Local scale — unchanged from glTF.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnityNodeTransform
impl RefUnwindSafe for UnityNodeTransform
impl Send for UnityNodeTransform
impl Sync for UnityNodeTransform
impl Unpin for UnityNodeTransform
impl UnsafeUnpin for UnityNodeTransform
impl UnwindSafe for UnityNodeTransform
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