class

BlendSpace2D

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

Public functions

ReturnsNameDescription
voidAddSample
voidAddSample
voidAddSample
voidClear
size_tSampleCount
const std::vector<BlendSample2D>&Samples
std::vector<BlendSample2D>&SamplesMutable
std::vector<Weighted>EvaluateInverse-distance-squared weighting over the nearest maxOut samples (robust + triangulation-free).
std::vector<Weighted>EvaluateSamplesThe same weighting, but clipIndex carries the SAMPLE index instead of the resolved clip index.
voidEvaluateSamplesSame result into a caller-owned vector — the graph evaluator runs this every frame per blend-space node and keeps the buffer.
const Vec2&GetAxisMin
const Vec2&GetAxisMax
voidSetAxisRange
int32_tGetGridDivisions
voidSetGridDivisions

Function details

AddSample

C++
void AddSample(int32_t clipIndex, const Vec2& position)

AddSample

C++
void AddSample(int32_t clipIndex, const std::string& clipName, const Vec2& position)

AddSample

C++
void AddSample(const BlendSample2D& sample)

Clear

C++
void Clear()

SampleCount

C++
size_t SampleCount() const

Samples

C++
const std::vector<BlendSample2D>& Samples() const

SamplesMutable

C++
std::vector<BlendSample2D>& SamplesMutable()

Evaluate

C++
std::vector<Weighted> Evaluate(const Vec2& param, int maxOut = 3) const

Inverse-distance-squared weighting over the nearest maxOut samples (robust + triangulation-free). Weights are normalized to sum 1. An exact hit on a sample returns that sample at weight 1.

EvaluateSamples

C++
std::vector<Weighted> EvaluateSamples(const Vec2& param, int maxOut = 3) const

The same weighting, but clipIndex carries the SAMPLE index instead of the resolved clip index. A caller that binds clips by name (the AnimGraph nodes do — they have no pre-resolved index to read) needs the sample back to reach its clipName, and re-deriving the weights on its own would be a second copy of this rule that could drift from this one.

EvaluateSamples

C++
void EvaluateSamples(const Vec2& param, int maxOut, std::vector<Weighted>& out) const

Same result into a caller-owned vector — the graph evaluator runs this every frame per blend-space node and keeps the buffer.

GetAxisMin

C++
const Vec2& GetAxisMin() const

GetAxisMax

C++
const Vec2& GetAxisMax() const

SetAxisRange

C++
void SetAxisRange(const Vec2& minValue, const Vec2& maxValue)

GetGridDivisions

C++
int32_t GetGridDivisions() const

SetGridDivisions

C++
void SetGridDivisions(int32_t divisions)
Generated from Animation/BlendSpace.h via animation.json · Oct 26, 2026Version 1.0.0