pub struct Skin {
pub extensions: Option<Skin>,
pub extras: Extras,
pub inverse_bind_matrices: Option<Index<Accessor>>,
pub joints: Vec<Index<Node>>,
pub name: Option<String>,
pub skeleton: Option<Index<Node>>,
}
Expand description
Joints and matrices defining a skin.
Fields§
§extensions: Option<Skin>
Extension specific data.
extras: Extras
Optional application specific data.
inverse_bind_matrices: Option<Index<Accessor>>
The index of the accessor containing the 4x4 inverse-bind matrices.
When None
,each matrix is assumed to be the 4x4 identity matrix
which implies that the inverse-bind matrices were pre-applied.
joints: Vec<Index<Node>>
Indices of skeleton nodes used as joints in this skin.
The array length must be the same as the count
property of the
inverse_bind_matrices
Accessor
(when defined).
name: Option<String>
Optional user-defined name for this object.
skeleton: Option<Index<Node>>
The index of the node used as a skeleton root.
When None
, joints transforms resolve to scene root.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Skin
impl<'de> Deserialize<'de> for Skin
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Skin
impl Send for Skin
impl Sync for Skin
impl Unpin for Skin
impl UnwindSafe for Skin
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