PoseInertia public API. 更多...
#include <PoseInertiaInternal.h>
Public 类型 | |
| using | Channels = std::array< float, 9 > |
Public 成员函数 | |
| void | begin (const AnimPose &source, const AnimPose &target, const AnimPose &previousTarget, float seconds) |
| Begins . | |
| void | remember (const AnimPose &output, float dt) |
| Remember. | |
| void | apply (const AnimPose &target, float elapsed, AnimPose &output, std::span< const float > factors={}) const |
| Applies . | |
静态 Public 成员函数 | |
| static Channels | difference (const TransformTRS &source, const TransformTRS &target) |
| Difference. | |
Public 属性 | |
| std::vector< Channels > | offsets |
| std::vector< Channels > | velocities |
| AnimPose | previousOutput |
| float | historyInterval = 0.f |
| float | duration = 0.f |
详细描述
PoseInertia public API.
在文件 PoseInertiaInternal.h 第 13 行定义.
成员类型定义说明
◆ Channels
| using eve::animation::detail::PoseInertia::Channels = std::array<float, 9> |
在文件 PoseInertiaInternal.h 第 14 行定义.
成员函数说明
◆ apply()
|
inline |
Applies .
在文件 PoseInertiaInternal.h 第 76 行定义.
◆ begin()
|
inline |
Begins .
在文件 PoseInertiaInternal.h 第 43 行定义.
引用了 bone, c, difference(), duration, eve::animation::AnimPose::getBoneCount(), historyInterval, length, eve::animation::AnimPose::local(), offsets, previous, previousOutput, source, target , 以及 velocities.
◆ difference()
|
inlinestatic |
◆ remember()
|
inline |
Remember.
在文件 PoseInertiaInternal.h 第 69 行定义.
引用了 eve::animation::AnimPose::copyFrom(), historyInterval, output , 以及 previousOutput.
类成员变量说明
◆ duration
| float eve::animation::detail::PoseInertia::duration = 0.f |
在文件 PoseInertiaInternal.h 第 18 行定义.
被这些函数引用 begin().
◆ historyInterval
| float eve::animation::detail::PoseInertia::historyInterval = 0.f |
在文件 PoseInertiaInternal.h 第 17 行定义.
被这些函数引用 begin() , 以及 remember().
◆ offsets
| std::vector<Channels> eve::animation::detail::PoseInertia::offsets |
在文件 PoseInertiaInternal.h 第 15 行定义.
被这些函数引用 begin().
◆ previousOutput
| AnimPose eve::animation::detail::PoseInertia::previousOutput |
在文件 PoseInertiaInternal.h 第 16 行定义.
被这些函数引用 begin() , 以及 remember().
◆ velocities
| std::vector<Channels> eve::animation::detail::PoseInertia::velocities |
在文件 PoseInertiaInternal.h 第 15 行定义.
被这些函数引用 begin().
该结构体的文档由以下文件生成:
- src/modules/animation/PoseInertiaInternal.h