class
BlendSpace2D
- Module
- Animation
- Header
#include "Animation/BlendSpace.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
void | AddSample | |
void | AddSample | |
void | AddSample | |
void | Clear | |
size_t | SampleCount | |
const std::vector<BlendSample2D>& | Samples | |
std::vector<BlendSample2D>& | SamplesMutable | |
std::vector<Weighted> | Evaluate | Inverse-distance-squared weighting over the nearest maxOut samples (robust + triangulation-free). |
std::vector<Weighted> | EvaluateSamples | The same weighting, but clipIndex carries the SAMPLE index instead of the resolved clip index. |
void | EvaluateSamples | Same 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 | |
void | SetAxisRange | |
int32_t | GetGridDivisions | |
void | SetGridDivisions |
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() constSamples
C++
const std::vector<BlendSample2D>& Samples() constSamplesMutable
C++
std::vector<BlendSample2D>& SamplesMutable()Evaluate
C++
std::vector<Weighted> Evaluate(const Vec2& param, int maxOut = 3) constInverse-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) constThe 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) constSame 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() constGetAxisMax
C++
const Vec2& GetAxisMax() constSetAxisRange
C++
void SetAxisRange(const Vec2& minValue, const Vec2& maxValue)GetGridDivisions
C++
int32_t GetGridDivisions() constSetGridDivisions
C++
void SetGridDivisions(int32_t divisions)Generated from Animation/BlendSpace.h via animation.json · Oct 26, 2026Version 1.0.0