pub enum SourceNodeLocalRest {
Trs {
translation: Vec3,
rotation: Quat,
scale: Vec3,
},
Matrix(Mat4),
}Expand description
The source-projected local-rest representation of one source node.
glTF permits either decomposed TRS properties or a matrix. Keeping this
representation separate from Bone::rest avoids presenting a lossy
matrix decomposition as though it were authored TRS evidence. For glTF the
value is the authored node member. A loader whose format semantics require
coordinate, helper-node, or inheritance normalization may instead project
that documented source-side result; its format-specific capability
inventory must make the distinction explicit. In particular, the FBX
loader records ufbx’s adjusted/compensated TRS here and never claims it is
the raw FBX transform stack.
Variants§
Trs
Source-declared or format-normalized translation, rotation, and scale.
Fields
Matrix(Mat4)
Source-declared or format-normalized column-major 4×4 local transform.
Trait Implementations§
Source§impl Clone for SourceNodeLocalRest
impl Clone for SourceNodeLocalRest
Source§fn clone(&self) -> SourceNodeLocalRest
fn clone(&self) -> SourceNodeLocalRest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more