Samples root motion from the animation module's registered clip for an action URI. 更多...
#include <AnimationRootMotionPreviewSource.h>
Public 成员函数 | |
| AnimationRootMotionPreviewSource (std::uint32_t rootBone=0) noexcept | |
| Construct a sampler for one zero-based root-bone track. | |
| Result< std::vector< action::ActionPreviewPoint3 > > | sampleRootMotion (std::string_view animationUri, Duration duration, std::uint32_t sampleCount) const override |
| Resolve one registered clip and sample its root track across the requested action duration. | |
Public 成员函数 继承自 eve::action::IActionRootMotionSource | |
| virtual | ~IActionRootMotionSource ()=default |
| Releases IActionRootMotionSource resources. | |
详细描述
Samples root motion from the animation module's registered clip for an action URI.
The source stores only a root-bone index. Each call resolves the clip from AnimClipRegistry and retains no pointer after returning, so clip destruction and hot reload remain observable through the registry. Missing clips surface as NotFound.
在文件 AnimationRootMotionPreviewSource.h 第 21 行定义.
构造及析构函数说明
◆ AnimationRootMotionPreviewSource()
|
inlineexplicitnoexcept |
Construct a sampler for one zero-based root-bone track.
在文件 AnimationRootMotionPreviewSource.h 第 24 行定义.
成员函数说明
◆ sampleRootMotion()
|
overridevirtual |
Resolve one registered clip and sample its root track across the requested action duration.
实现了 eve::action::IActionRootMotionSource.
在文件 AnimationRootMotionPreviewSource.cpp 第 23 行定义.
引用了 clip, eve::Conflict, duration, eve::Failed, eve::animation::AnimClipRegistry::findByPath(), index, eve::InvalidArgument, eve::NotFound, path, pose, root, eve::StaleHandle, uri , 以及 eve::Duration::zero().
该类的文档由以下文件生成:
- src/modules/action/editor/AnimationRootMotionPreviewSource.h
- src/modules/action/editor/AnimationRootMotionPreviewSource.cpp
Public 成员函数 继承自