BoneTransform struct

Value-type local or world-space bone transform evaluated by the animation system. Translation/scale use SimFloat (Fixed32 metric precision). Rotation uses SimUnit (FixedUnit precision) for bit-identical results under TNX_DETERMINISM.

Public static functions

static auto Identity() -> BoneTransform
static auto Compose(const BoneTransform& parent, const BoneTransform& child) -> BoneTransform
Apply child transform in the local space of parent (full TRS composition).
static auto NLerp(const BoneTransform& a, const BoneTransform& b, SimFloat t) -> BoneTransform
Normalized linear blend between two transforms by weight [0, 1].
static auto WeightedAdd(const BoneTransform& acc, const BoneTransform& sample, SimFloat w) -> BoneTransform
Accumulate a weighted sample into an existing accumulator. Call Normalize() after all slots.
static auto Normalize(const BoneTransform& acc, SimFloat totalWeight) -> BoneTransform
Normalize an accumulated result produced by one or more WeightedAdd calls.
static auto ApplyAdditive(const BoneTransform& base, const BoneTransform& delta, SimFloat alpha) -> BoneTransform
Apply an additive delta authored from identity: translation adds, rotation composes base * nlerp(id, delta, alpha).

Public variables

SimFloat tx
SimFloat ty
SimFloat tz
SimUnit rx
SimUnit ry
SimUnit rz
SimUnit rw
SimFloat sx
SimFloat sy
SimFloat sz