pub struct SceneJoint {
pub name: String,
pub father: Option<i64>,
pub translation: [f64; 3],
pub rotation: [f64; 4],
pub scale: [f64; 3],
}Expand description
A Transform as a joint of a skeleton: its GameObject’s name, its father (a Transform’s path id) and its local
position, rotation ([x, y, z, w]) and scale as stored, in Unity’s frame.
Fields§
§name: StringThe GameObject’s name.
father: Option<i64>The parent Transform’s path id; None for a root.
translation: [f64; 3]Local position.
rotation: [f64; 4]Local rotation, a quaternion [x, y, z, w].
scale: [f64; 3]Local scale.
Trait Implementations§
Source§impl Clone for SceneJoint
impl Clone for SceneJoint
Source§impl Debug for SceneJoint
impl Debug for SceneJoint
Source§impl PartialEq for SceneJoint
impl PartialEq for SceneJoint
impl StructuralPartialEq for SceneJoint
Auto Trait Implementations§
impl Freeze for SceneJoint
impl RefUnwindSafe for SceneJoint
impl Send for SceneJoint
impl Sync for SceneJoint
impl Unpin for SceneJoint
impl UnsafeUnpin for SceneJoint
impl UnwindSafe for SceneJoint
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