class

FLayeredBlendPerBone

Module
Animation
Header
#include "Animation/AnimGraphNodes.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
voidBuildPerBoneWeights
voidBlendOverrideWeighted
voidBlendAdditiveWeighted
voidBlendAdditiveMeshSpaceWeightedMesh-space additive: rotation deltas are measured between the layer and reference poses' ACCUMULATED (component-space) rotations and applied after the base's accumulated rotation, then the whole pose is converted back to local space through the modified parents.
voidEvaluateA MeshSpace additive layer needs skeleton; with none it degrades to the LocalSpace math rather than dropping the layer.

Function details

BuildPerBoneWeights

C++
static void BuildPerBoneWeights(uint32_t boneCount, const std::vector<FBoneGroup>& groups, float layerWeight, std::vector<float>& out)

BlendOverrideWeighted

C++
static void BlendOverrideWeighted(const std::vector<Mat4>& base, const std::vector<Mat4>& layer, const std::vector<float>& perBoneWeight, std::vector<Mat4>& out)

BlendAdditiveWeighted

C++
static void BlendAdditiveWeighted(const std::vector<Mat4>& base, const std::vector<Mat4>& layer, const std::vector<Mat4>& reference, const std::vector<float>& perBoneWeight, std::vector<Mat4>& out)

BlendAdditiveMeshSpaceWeighted

C++
static void BlendAdditiveMeshSpaceWeighted(const std::vector<Mat4>& base, const std::vector<Mat4>& layer, const std::vector<Mat4>& reference, const std::vector<float>& perBoneWeight, const Skeleton& skeleton, std::vector<Mat4>& out)

Mesh-space additive: rotation deltas are measured between the layer and reference poses' ACCUMULATED (component-space) rotations and applied after the base's accumulated rotation, then the whole pose is converted back to local space through the modified parents. An unweighted bone therefore keeps its component-space orientation even when an ancestor took the delta — the property that makes look-ats/recoil layer correctly over arbitrary bases. Needs the skeleton for parent indices; deltas are measured inside the rig (Skeleton root transform excluded, which cancels because all three poses share it).

Evaluate

C++
static void Evaluate(const std::vector<Mat4>& basePose, const std::vector<FLayeredBlendInput>& layers, std::vector<Mat4>& out, const Skeleton* skeleton = nullptr)

A MeshSpace additive layer needs skeleton; with none it degrades to the LocalSpace math rather than dropping the layer.

Generated from Animation/AnimGraphNodes.h via animation.json · Oct 26, 2026Version 1.0.0