载入中...
搜索中...
未找到
MontageCoordinator.cpp
浏览该文件的文档.
2
6
7#include <algorithm>
8#include <cmath>
9#include <limits>
10#include <utility>
11
12namespace eve::animation {
13namespace {
14
15template <class T>
16Result<T> coordinatorError(DiagnosticCode code, std::string message, std::string path) {
17 return Result<T>::failure(Diagnostic::error(code, std::move(message), std::move(path)));
18}
19
20} // namespace
21
23 : skeleton_(skeleton), composedPose_(std::make_unique<AnimPose>(skeleton.getBoneCount())),
24 upperBodyOrientation_(skeleton) {
25 skeleton_.applyBindPose(composedPose_.get());
26}
27
28void MontageCoordinator::ensureLayer(std::size_t layer) {
29 while (layers_.size() <= layer) {
30 Layer entry;
31 entry.pose = std::make_unique<AnimPose>(skeleton_.getBoneCount());
32 entry.rawPose = std::make_unique<AnimPose>(skeleton_.getBoneCount());
33 entry.blendScratch = std::make_unique<AnimPose>(skeleton_.getBoneCount());
34 skeleton_.applyBindPose(entry.pose.get());
35 skeleton_.applyBindPose(entry.rawPose.get());
36 skeleton_.applyBindPose(entry.blendScratch.get());
37 layers_.push_back(std::move(entry));
38 }
39}
40
41void MontageCoordinator::retireSlot(Slot& slot) noexcept {
42 if (slot.player) slot.player->stop();
43 slot.live = false;
44 auto next = MontageHandle::nextGeneration(slot.generation);
45 if (next)
46 slot.generation = *next;
47 else
48 slot.retired = true;
49}
50
52 std::vector<MontageClipAsset>&& clips,
54 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
56 Diagnostic::error(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer"));
57 ensureLayer(layer);
58 Layer& entry = layers_[layer];
59 const std::size_t nextIndex = 1U - entry.active;
60 Slot& next = entry.slots[nextIndex];
61 if (next.retired)
63 Diagnostic::error(DiagnosticCode::Failed, "montage slot generation is exhausted", "slot"));
64 if (next.player) retireSlot(next);
65 if (next.retired)
67 Diagnostic::error(DiagnosticCode::Failed, "montage slot generation is exhausted", "slot"));
68
69 auto candidate = std::make_unique<MontagePlayer>(skeleton_);
70 if (entry.rootMotionReceiver) candidate->setRootMotionReceiver(*entry.rootMotionReceiver);
71 if (entry.rootMotionPolicy) {
72 auto applied = candidate->setRootMotionPolicy(*entry.rootMotionPolicy);
73 if (!applied) return Result<MontageHandle>::failure(applied.status());
74 }
75 const Duration blendOut = timeline.montage.defaultBlendIn;
76 auto prepared = candidate->prepare(std::move(timeline), std::move(clips));
77 if (!prepared) return Result<MontageHandle>::failure(prepared.status());
78 next.player = std::move(candidate);
79 auto started = next.player->play(executionId);
80 if (!started) return Result<MontageHandle>::failure(started.status());
81 Slot& previous = entry.slots[entry.active];
82 if (previous.live && (previous.player->isPlaying() || previous.player->isFinished())) {
83 auto fading = previous.player->beginBlendOut(blendOut, tick);
84 if (!fading) return Result<MontageHandle>::failure(fading.status());
85 }
86 next.live = true;
87 entry.active = nextIndex;
89 MontageHandle(static_cast<MontageHandle::index_type>(handleIndex(layer, nextIndex)), next.generation),
91}
92
93MontageCoordinator::Slot* MontageCoordinator::slotFor(MontageHandle handle) noexcept {
94 if (!handle.isValid()) return nullptr;
95 const std::size_t layer = handle.index() / 2U;
96 const std::size_t slot = handle.index() % 2U;
97 if (layer >= layers_.size()) return nullptr;
98 Slot& candidate = layers_[layer].slots[slot];
99 return candidate.live && candidate.player && candidate.generation == handle.generation() ? &candidate : nullptr;
100}
101
102const MontageCoordinator::Slot* MontageCoordinator::slotFor(MontageHandle handle) const noexcept {
103 return const_cast<MontageCoordinator*>(this)->slotFor(handle);
104}
105
107 Slot* slot = slotFor(handle);
108 if (!slot)
110 Diagnostic::error(DiagnosticCode::StaleHandle, "montage handle is invalid or stale", "handle"));
111 return Result<std::reference_wrapper<MontagePlayer>>::success(std::ref(*slot->player));
112}
113
115 const Slot* slot = slotFor(handle);
116 if (!slot)
118 Diagnostic::error(DiagnosticCode::StaleHandle, "montage handle is invalid or stale", "handle"));
119 return Result<std::reference_wrapper<const MontagePlayer>>::success(std::cref(*slot->player));
120}
121
124 auto player = resolve(handle);
125 if (!player) return Result<MontageAdvance>::failure(player.status());
126 return player.value().get().present(advance, tick);
127}
128
131 auto player = resolve(handle);
132 if (!player) return Result<MontageAdvance>::failure(player.status());
133 return player.value().get().present(std::move(advance), tick);
134}
135
137 for (Layer& layer : layers_) {
138 for (Slot& slot : layer.slots) {
139 if (!slot.live || !slot.player || !slot.player->isBlendingOut()) continue;
140 const MontageHandle handle(static_cast<MontageHandle::index_type>(&layer - layers_.data()) * 2U +
141 static_cast<MontageHandle::index_type>(&slot - layer.slots),
142 slot.generation);
143 if (handle == except) continue;
144 auto advanced = slot.player->advanceBlendOut(delta, tick);
145 if (!advanced) return Result<void>::failure(advanced.status());
146 }
147 }
150}
151
153 auto player = resolve(handle);
154 if (!player) return Result<MontageAdvance>::failure(player.status());
155 return player.value().get().beginBlendOut(blendOut, tick);
156}
157
159 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
161 Diagnostic::error(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer"));
162 if (weights.size() != static_cast<std::size_t>(skeleton_.getBoneCount()))
164 "montage layer mask must contain one weight per skeleton bone",
165 "weights"));
166 if (std::any_of(weights.begin(), weights.end(), [](float weight) {
167 return !std::isfinite(weight) || weight < 0.0f || weight > 1.0f;
168 }))
170 DiagnosticCode::InvalidArgument, "montage layer mask weights must be finite and within [0,1]", "weights"));
171 ensureLayer(layer);
172 layers_[layer].boneMask = std::move(weights);
173 layers_[layer].boneMaskSource = MontageBoneMaskSource::Custom;
175}
176
178 if (mask.getSkeleton() != &skeleton_)
180 "montage layer mask belongs to a different skeleton", "mask"));
181 std::vector<float> weights;
182 weights.reserve(static_cast<std::size_t>(mask.getBoneCount()));
183 for (int bone = 0; bone < mask.getBoneCount(); ++bone) weights.push_back(mask.getBoneWeight(bone));
184 return setLayerBoneMask(layer, std::move(weights));
185}
186
188 if (layer >= layers_.size())
190 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
191 if (layers_[layer].boneMask.empty()) return Result<void>::success(Status::success(StatusCode::NoOp));
192 layers_[layer].boneMask.clear();
193 layers_[layer].boneMaskSource = MontageBoneMaskSource::None;
195}
196
198 auto configured = setLayerBoneMask(layer, mask);
199 if (!configured) return configured;
200 layers_[layer].boneMaskSource = MontageBoneMaskSource::ProceduralUpperBody;
202}
203
205 if (layer >= layers_.size())
206 return coordinatorError<MontageBoneMaskSource>(DiagnosticCode::NotFound, "montage layer does not exist",
207 "layer");
208 return Result<MontageBoneMaskSource>::success(layers_[layer].boneMaskSource);
209}
210
212 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
213 return coordinatorError<void>(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer");
215 for (std::size_t index = 0; index < layers_.size(); ++index) {
216 if (index != layer && layers_[index].role == role)
217 return coordinatorError<void>(DiagnosticCode::Conflict,
218 "montage coordinator already has a layer with this unique role",
219 "role");
220 }
221 }
222 ensureLayer(layer);
223 if (layers_[layer].role == role) return Result<void>::success(Status::success(StatusCode::NoOp));
224 layers_[layer].role = role;
225 if (role == MontageLayerRole::Additive)
226 layers_[layer].additive = true;
228 layers_[layer].additive = false;
230}
231
233 if (layer >= layers_.size())
234 return coordinatorError<MontageLayerRole>(DiagnosticCode::NotFound, "montage layer does not exist", "layer");
235 return Result<MontageLayerRole>::success(layers_[layer].role);
236}
237
239 auto configured = upperBodyOrientation_.configure(profile);
240 if (!configured) return configured;
241 upperBodyOrientationStatus_ = UpperBodyOrientationStatus::Inactive;
243}
244
246 upperBodyOrientation_.clear();
247 upperBodyOrientationStatus_ = UpperBodyOrientationStatus::Unconfigured;
248}
249
251 if (layer >= layers_.size())
252 return Result<std::vector<float>>::failure(
253 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
254 return Result<std::vector<float>>::success(layers_[layer].boneMask);
255}
256
258 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
260 Diagnostic::error(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer"));
261 if (!std::isfinite(weight) || weight < 0.0f || weight > 1.0f)
263 DiagnosticCode::InvalidArgument, "montage layer weight must be finite and within [0,1]", "weight"));
264 ensureLayer(layer);
266 layers_[layer].weight = weight;
268}
269
271 if (layer >= layers_.size())
273 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
274 return Result<float>::success(layers_[layer].weight);
275}
276
278 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
280 Diagnostic::error(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer"));
281 ensureLayer(layer);
282 if (layers_[layer].additive == additive) return Result<void>::success(Status::success(StatusCode::NoOp));
283 layers_[layer].additive = additive;
285}
286
288 if (layer >= layers_.size())
290 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
291 return Result<bool>::success(layers_[layer].additive);
292}
293
295 IMontageRootMotionReceiver& receiver) {
296 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
298 Diagnostic::error(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer"));
299 ensureLayer(layer);
300 Layer& entry = layers_[layer];
301 entry.rootMotionReceiver = &receiver;
302 for (Slot& slot : entry.slots)
303 if (slot.player) slot.player->setRootMotionReceiver(receiver);
305}
306
308 if (layer >= layers_.size())
310 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
311 Layer& entry = layers_[layer];
312 if (!entry.rootMotionReceiver) return Result<void>::success(Status::success(StatusCode::NoOp));
313 for (Slot& slot : entry.slots)
314 if (slot.player) slot.player->clearRootMotionReceiver();
315 entry.rootMotionReceiver = nullptr;
317}
318
320 if (layer > static_cast<std::size_t>(std::numeric_limits<MontageHandle::index_type>::max() / 2U))
322 Diagnostic::error(DiagnosticCode::InvalidArgument, "montage layer is too large", "layer"));
323 auto validated = validateRootMotionPolicy(policy);
324 if (!validated) return validated;
325 ensureLayer(layer);
326 Layer& entry = layers_[layer];
327 for (Slot& slot : entry.slots) {
328 if (!slot.player) continue;
329 auto applied = slot.player->setRootMotionPolicy(policy);
330 if (!applied) return applied;
331 }
332 entry.rootMotionPolicy = policy;
334}
335
337 if (layer >= layers_.size())
339 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
340 Layer& entry = layers_[layer];
341 if (!entry.rootMotionPolicy) return Result<void>::success(Status::success(StatusCode::NoOp));
342 entry.rootMotionPolicy.reset();
344}
345
346double MontageCoordinator::evaluateLayerPose(Layer& layer) const {
347 const Slot* first = nullptr;
348 const Slot* second = nullptr;
349 double total = 0.0;
350 for (const Slot& slot : layer.slots) {
351 if (!slot.live || !slot.player || slot.player->weight() <= 0.0) continue;
352 total += slot.player->weight();
353 if (!first) first = &slot;
354 else second = &slot;
355 }
356 if (!first) {
357 skeleton_.applyBindPose(layer.rawPose.get());
358 return 0.0;
359 }
360
361 layer.rawPose->copyFrom(&first->player->pose());
362 if (second) {
363 if (total > 0.0) {
364 layer.blendScratch->copyFrom(layer.rawPose.get());
365 layer.rawPose->blendFrom(layer.blendScratch.get(), &second->player->pose(),
366 static_cast<float>(second->player->weight() / total));
367 }
368 }
369 return total;
370}
371
373 if (layerIndex >= layers_.size())
375 Diagnostic::error(DiagnosticCode::NotFound, "montage layer does not exist", "layer"));
376 Layer& layer = layers_[layerIndex];
377 (void)evaluateLayerPose(layer);
378 skeleton_.applyBindPose(layer.pose.get());
379 if (layer.boneMask.empty()) {
380 layer.pose->copyFrom(layer.rawPose.get());
381 } else {
382 for (int bone = 0; bone < layer.pose->getBoneCount(); ++bone) {
383 const float weight = layer.boneMask[static_cast<std::size_t>(bone)];
384 layer.pose->local(bone) = blendTRS(layer.pose->local(bone), layer.rawPose->local(bone), weight);
385 }
386 }
387 return Result<std::reference_wrapper<AnimPose>>::success(std::ref(*layer.pose));
388}
389
391 if (basePose.getBoneCount() != skeleton_.getBoneCount())
393 DiagnosticCode::InvalidArgument, "montage base pose must match the coordinator skeleton", "basePose"));
394 composedPose_->copyFrom(&basePose);
395 upperBodyOrientationStatus_ = upperBodyOrientation_.isConfigured() ? UpperBodyOrientationStatus::Inactive
397 Layer* upperBody = nullptr;
398 float upperBodyWeight = 0.0f;
399 bool fullBodyDominant = false;
400 for (Layer& layer : layers_) {
401 const double rawWeight = evaluateLayerPose(layer);
402 const float layerWeight = clampf(static_cast<float>(rawWeight), 0.0f, 1.0f) * layer.weight;
403 if (layerWeight <= 0.0f) continue;
404 if (!layer.additive && layer.role == MontageLayerRole::FullBody) fullBodyDominant = true;
405 if (!layer.additive && layer.role == MontageLayerRole::UpperBody) {
406 upperBody = &layer;
407 upperBodyWeight = layerWeight;
408 }
409 if (layer.additive) continue;
410 for (int bone = 0; bone < composedPose_->getBoneCount(); ++bone) {
411 const float maskWeight = layer.boneMask.empty() ? 1.0f : layer.boneMask[static_cast<std::size_t>(bone)];
412 const float weight = clampf(layerWeight * maskWeight, 0.0f, 1.0f);
413 if (weight <= 0.0f) continue;
414 composedPose_->local(bone) = blendTRS(composedPose_->local(bone), layer.rawPose->local(bone), weight);
415 }
416 }
417 if (upperBody && upperBodyOrientation_.isConfigured()) {
418 if (fullBodyDominant) {
419 upperBodyOrientationStatus_ = UpperBodyOrientationStatus::BypassedFullBody;
420 } else if (upperBody->boneMaskSource == MontageBoneMaskSource::Custom) {
421 upperBodyOrientationStatus_ = UpperBodyOrientationStatus::BypassedCustomMask;
422 } else {
423 auto corrected = upperBodyOrientation_.apply(*composedPose_, *upperBody->rawPose, upperBodyWeight);
424 if (!corrected) return Result<std::reference_wrapper<AnimPose>>::failure(corrected.status());
425 upperBodyOrientationStatus_ = corrected.status().code() == StatusCode::NoOp
428 }
429 }
430 for (Layer& layer : layers_) {
431 if (!layer.additive) continue;
432 const double rawWeight = evaluateLayerPose(layer);
433 const float layerWeight = clampf(static_cast<float>(rawWeight), 0.0f, 1.0f) * layer.weight;
434 if (layerWeight <= 0.0f) continue;
435 for (int bone = 0; bone < composedPose_->getBoneCount(); ++bone) {
436 const float maskWeight = layer.boneMask.empty() ? 1.0f : layer.boneMask[static_cast<std::size_t>(bone)];
437 const float weight = clampf(layerWeight * maskWeight, 0.0f, 1.0f);
438 if (weight <= 0.0f) continue;
439 applyAdditiveTRS(composedPose_->local(bone), layer.rawPose->local(bone), skeleton_.bindLocal(bone),
440 weight);
441 }
442 }
443 composedPose_->computeWorld(&skeleton_);
444 return Result<std::reference_wrapper<AnimPose>>::success(std::ref(*composedPose_));
445}
446
448 for (Layer& layer : layers_)
449 for (Slot& slot : layer.slots)
450 if (slot.live && slot.player && !slot.player->isPlaying() && !slot.player->isBlendingOut() &&
451 slot.player->weight() <= 0.0)
452 retireSlot(slot);
453}
454
455} // namespace eve::animation
eve::action::ActionExecutionId executionId
int mask
bool applied
std::string message
DiagnosticCode code
std::int32_t second
std::int32_t first
std::uint32_t bone
Layered dual-slot montage ownership and stable handles.
std::shared_ptr< const OceanSprayFrame > previous
TileLayer * layer
std::string path
Definition PlayHost.cpp:111
PrimitiveHandle handle
std::string slot
LocalPageCacheEntry slots[ShadowConfig::kLocalSlots]
Definition Shadow.cpp:159
SimulationTick tick
float weights[3]
double weight
uint32_t index
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Signed, fixed-resolution simulation duration in nanoseconds.
Definition Time.h:43
Move-only operation result carrying either a value or Status.
Definition Result.h:176
static Result success(T value)
Construct a successful result owning value.
Definition Result.h:185
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Process-local slot identity tagged by the registry that owns it.
constexpr std::optional< RuntimeHandle > nextGeneration() const noexcept
Returns this slot at its next generation.
detail::HandleCoordinates::index_type index_type
Unsigned owner-local slot index type.
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.cpp:19
Per-bone weights used by override and additive animation layers.
Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.
Definition AnimPose.h:17
int getBoneCount() const noexcept
Returns the bone count.
Definition AnimPose.h:36
3D bone hierarchy + bind-pose local TRS for skeletal animation. Independent of ik::Skeleton3D (FABRIK...
int getBoneCount() const
Returns the bone count.
const TransformTRS & bindLocal(int boneIndex) const
Binds local.
void applyBindPose(class AnimPose *pose) const
Fill pose locals with bind pose.
Optional receiver for filtered per-step root motion.
Result< void > clearLayerRootMotionPolicy(std::size_t layer)
Clear a layer-owned root-motion policy so future slots use MontagePlayer defaults.
Result< void > clearLayerRootMotionReceiver(std::size_t layer)
Clear the borrowed root-motion receiver from current and future slots of a layer.
Result< void > configureUpperBodyOrientation(const UpperBodyOrientationProfile &profile)
Transactionally resolve and publish the skeleton profile used for upper-body orientation correction.
Result< void > setLayerAdditive(std::size_t layer, bool additive)
Select bind-pose-relative additive or ordered override composition for one layer.
Result< std::reference_wrapper< MontagePlayer > > resolve(MontageHandle handle)
Resolve a live handle for immediate synchronous use.
void collectFinished() noexcept
Reclaim finished slots and invalidate their handles.
Result< std::vector< float > > layerBoneMask(std::size_t layer) const
Return an owning copy of one configured layer mask.
Result< void > setLayerProceduralUpperBodyMask(std::size_t layer, const AnimBoneMask &mask)
Snapshot a standard procedural upper-body mask and permit orientation compensation on this layer.
Result< void > setLayerBoneMask(std::size_t layer, std::vector< float > weights)
Atomically replace one layer's owning per-bone blend weights.
Result< void > setLayerRootMotionReceiver(std::size_t layer, IMontageRootMotionReceiver &receiver)
Install one root-motion receiver shared by current and future slots of a layer.
Result< MontageLayerRole > layerRole(std::size_t layer) const
Return one layer's semantic composition role, or NotFound for an absent layer.
Result< MontageHandle > play(std::size_t layer, action::ActionTimeline timeline, std::vector< MontageClipAsset > &&clips, action::ActionExecutionId executionId, SimulationTick tick)
Prepare and play a montage in the opposite slot of a layer.
Result< void > clearLayerBoneMask(std::size_t layer)
Remove one layer's bone mask so subsequent composition affects every bone.
void clearUpperBodyOrientation() noexcept
Remove the optional orientation profile; subsequent composition remains valid and reports Unconfigure...
Result< float > layerWeight(std::size_t layer) const
Return one configured layer's global influence, or NotFound for an absent layer.
MontageCoordinator(AnimSkeleton &skeleton)
Construct over a skeleton that must outlive this coordinator.
Result< MontageAdvance > stop(MontageHandle handle, Duration blendOut, SimulationTick tick)
Stop one live slot with a continuous blend-out.
Result< void > setLayerRootMotionPolicy(std::size_t layer, const RootMotionPolicy &policy)
Install a root-motion policy for current and future slots of a layer.
Result< std::reference_wrapper< AnimPose > > compose(const AnimPose &basePose)
Compose every configured montage layer over an immediate borrowed base pose.
Result< void > setLayerRole(std::size_t layer, MontageLayerRole role)
Assign semantic composition policy to a layer without changing its animation data.
Result< void > setLayerWeight(std::size_t layer, float weight)
Set one layer's finite global influence.
Result< std::reference_wrapper< AnimPose > > pose(std::size_t layer)
Borrow the normalized full layer pose; invalid layers return a structured failure.
Result< void > advanceBlendOuts(Duration delta, SimulationTick tick, MontageHandle except=MontageHandle::invalid())
Advance every fading slot except an optional slot already advanced by its owner.
Result< bool > layerAdditive(std::size_t layer) const
Return whether one configured layer uses additive composition, or NotFound for an absent layer.
Result< MontageAdvance > present(MontageHandle handle, const action::ActionAdvance &advance, SimulationTick tick)
Present one authoritative action advance through a live slot.
Result< MontageBoneMaskSource > layerBoneMaskSource(std::size_t layer) const
Return the observable origin of a configured layer mask, or NotFound for an absent layer.
bool isConfigured() const noexcept
Whether a validated profile is currently published.
Result< void > configure(const UpperBodyOrientationProfile &profile)
Transactionally replace the resolved profile.
Result< void > apply(AnimPose &pose, AnimPose &upperBodyPose, float weight) const
Blend the sampled upper-body spine orientation into an accumulated pose.
MontageLayerRole
Semantic composition role used by upper-body orientation policy.
TransformTRS blendTRS(const TransformTRS &a, const TransformTRS &b, float t)
Blend trs.
Definition AnimMath.h:79
eve::Result< void > validateRootMotionPolicy(const RootMotionPolicy &policy)
Validate policy fields.
void applyAdditiveTRS(TransformTRS &base, const TransformTRS &sample, const TransformTRS &reference, float weight)
Apply an additive sample onto base using reference.
Definition AnimMath.h:114
RuntimeHandle< MontageHandleTag > MontageHandle
Generation-qualified identity owned by one MontageCoordinator.
constexpr float clampf(float v, float lo, float hi) noexcept
Clampf.
Definition AnimMath.h:34
DiagnosticCode
Stable machine-readable diagnostic codes.
Definition Diagnostic.h:47
Result payload for one deterministic advance call.
Definition Action.h:204
Canonical action timeline asset shared by runtime and editor.
ActionMontageSettings montage
Policy applied after raw root-bone delta extraction. @ownership Value type; owned by AnimPlayer or th...
Stable bone-name profile used to prepare upper-body orientation compensation.
bool started
Definition Graphics.cpp:200