pub struct MeshInstance {
pub source_node_index: usize,
pub node: BoneId,
pub mesh: usize,
pub skin_joints: Vec<BoneId>,
pub skin_ibms: Vec<Mat4>,
}Expand description
One node instance of a source MeshAsset definition.
Fields§
§source_node_index: usizeIndex of the source-format node that owns this mesh instance.
node: BoneIdThe node this mesh hangs off in the core skeleton.
mesh: usizeIndex into SceneAssets::meshes of the instanced definition.
skin_joints: Vec<BoneId>Skin joints in cluster order. Empty = unskinned.
skin_ibms: Vec<Mat4>Per-joint inverse bind matrices, parallel to skin_joints
(glTF convention: joint-bind-world⁻¹ × geometry-to-world, all
in the converted scene space). Falls back to the bones’
inverse_bind when empty.
Trait Implementations§
Source§impl Clone for MeshInstance
impl Clone for MeshInstance
Source§fn clone(&self) -> MeshInstance
fn clone(&self) -> MeshInstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshInstance
impl Debug for MeshInstance
Source§impl Default for MeshInstance
impl Default for MeshInstance
Source§fn default() -> MeshInstance
fn default() -> MeshInstance
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MeshInstance
impl RefUnwindSafe for MeshInstance
impl Send for MeshInstance
impl Sync for MeshInstance
impl Unpin for MeshInstance
impl UnsafeUnpin for MeshInstance
impl UnwindSafe for MeshInstance
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