Skip to main content

SkinnedMeshGeometry

Trait SkinnedMeshGeometry 

Source
pub trait SkinnedMeshGeometry {
    // Required method
    fn model_matrix(&self) -> [[f32; 4]; 4];
}
Expand description

Column-major world matrix from a SkinnedMesh’s transform. Kept in core (not the schema half) because the matrix build goes through gfx::skeleton, which needs std transcendentals. Exposed as an extension trait so call sites keep method syntax (sm.model_matrix()), matching geometry.rs.

Required Methods§

Source

fn model_matrix(&self) -> [[f32; 4]; 4]

Column-major world matrix built from the mesh’s transform.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§