pub struct MorphTargetBind { /* private fields */ }Expand description
A blend-shape bind: the morph target on a node that an expression drives.
Implementations§
Source§impl MorphTargetBind
impl MorphTargetBind
Sourcepub fn new(node_index: u32, target_index: u32, weight: f32) -> Self
pub fn new(node_index: u32, target_index: u32, weight: f32) -> Self
Creates a bind for a node’s morph target with its maximum weight.
Sourcepub fn node_index(&self) -> u32
pub fn node_index(&self) -> u32
Returns the glTF node index containing the target mesh.
Sourcepub fn target_index(&self) -> u32
pub fn target_index(&self) -> u32
Returns the morph target index within the node’s mesh.
Trait Implementations§
Source§impl Clone for MorphTargetBind
impl Clone for MorphTargetBind
Auto Trait Implementations§
impl Freeze for MorphTargetBind
impl RefUnwindSafe for MorphTargetBind
impl Send for MorphTargetBind
impl Sync for MorphTargetBind
impl Unpin for MorphTargetBind
impl UnsafeUnpin for MorphTargetBind
impl UnwindSafe for MorphTargetBind
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