Control-theory procedural pose driver: tracks a target AnimPose with per-channel second-order / spring / PD dynamics (same laws as ControlAnim). Script type: ControlPose.
更多...
#include <ControlPose.h>
Public 成员函数 | |
| ControlPose (AnimSkeleton *skeleton) | |
| ~ControlPose ()=default | |
| ControlPose (const ControlPose &)=delete | |
| ControlPose & | operator= (const ControlPose &)=delete |
| AnimSkeleton * | getSkeleton () const |
| void | setFrequency (float frequencyHz) |
| float | getFrequency () const |
| void | setDamping (float dampingZeta) |
| float | getDamping () const |
| void | setResponse (float response) |
| float | getResponse () const |
| void | setIntegrator (const std::string &kind) |
| std::string | getIntegrator () const |
| void | setBoneWeight (int boneIndex, float weight) |
| Per-bone blend weight in [0,1]; 1 = full dynamics, 0 = hard snap to target. | |
| float | getBoneWeight (int boneIndex) const |
| void | setTargetPose (const AnimPose *target) |
| Copy target pose. Channels without prior state snap; existing state keeps momentum. | |
| void | snapToTarget () |
| Snap current state to the last target without changing the target. | |
| AnimPose * | getPose () |
| AnimPose * | getTargetPose () |
| void | update (float dt) |
详细描述
Control-theory procedural pose driver: tracks a target AnimPose with per-channel second-order / spring / PD dynamics (same laws as ControlAnim). Script type: ControlPose.
Position and scale use independent scalar channels. Rotations use shortest-path quaternion components with renormalization after each step.
在文件 ControlPose.h 第 21 行定义.
构造及析构函数说明
◆ ControlPose() [1/2]
|
explicit |
◆ ~ControlPose()
|
default |
◆ ControlPose() [2/2]
|
delete |
成员函数说明
◆ getBoneWeight()
| float eve::animation::ControlPose::getBoneWeight | ( | int | boneIndex | ) | const |
在文件 ControlPose.cpp 第 81 行定义.
◆ getDamping()
|
inline |
在文件 ControlPose.h 第 34 行定义.
◆ getFrequency()
|
inline |
在文件 ControlPose.h 第 32 行定义.
◆ getIntegrator()
| std::string eve::animation::ControlPose::getIntegrator | ( | ) | const |
在文件 ControlPose.cpp 第 52 行定义.
◆ getPose()
| AnimPose * eve::animation::ControlPose::getPose | ( | ) |
在文件 ControlPose.cpp 第 146 行定义.
◆ getResponse()
|
inline |
在文件 ControlPose.h 第 36 行定义.
◆ getSkeleton()
|
inline |
在文件 ControlPose.h 第 29 行定义.
◆ getTargetPose()
| AnimPose * eve::animation::ControlPose::getTargetPose | ( | ) |
在文件 ControlPose.cpp 第 151 行定义.
◆ operator=()
|
delete |
◆ setBoneWeight()
| void eve::animation::ControlPose::setBoneWeight | ( | int | boneIndex, |
| float | weight | ||
| ) |
Per-bone blend weight in [0,1]; 1 = full dynamics, 0 = hard snap to target.
在文件 ControlPose.cpp 第 76 行定义.
◆ setDamping()
| void eve::animation::ControlPose::setDamping | ( | float | dampingZeta | ) |
在文件 ControlPose.cpp 第 29 行定义.
◆ setFrequency()
| void eve::animation::ControlPose::setFrequency | ( | float | frequencyHz | ) |
在文件 ControlPose.cpp 第 24 行定义.
◆ setIntegrator()
| void eve::animation::ControlPose::setIntegrator | ( | const std::string & | kind | ) |
在文件 ControlPose.cpp 第 39 行定义.
引用了 kind.
◆ setResponse()
| void eve::animation::ControlPose::setResponse | ( | float | response | ) |
在文件 ControlPose.cpp 第 34 行定义.
◆ setTargetPose()
| void eve::animation::ControlPose::setTargetPose | ( | const AnimPose * | target | ) |
Copy target pose. Channels without prior state snap; existing state keeps momentum.
在文件 ControlPose.cpp 第 130 行定义.
◆ snapToTarget()
| void eve::animation::ControlPose::snapToTarget | ( | ) |
Snap current state to the last target without changing the target.
在文件 ControlPose.cpp 第 140 行定义.
◆ update()
| void eve::animation::ControlPose::update | ( | float | dt | ) |
在文件 ControlPose.cpp 第 204 行定义.
引用了 b, eve::animation::AnimPose::getBoneCount(), eve::animation::AnimPose::local(), n, eve::animation::TransformTRS::px, eve::animation::TransformTRS::py, eve::animation::TransformTRS::pz, eve::animation::TransformTRS::qw, eve::animation::TransformTRS::qx, eve::animation::TransformTRS::qy, eve::animation::TransformTRS::qz, s, eve::animation::TransformTRS::sx, eve::animation::TransformTRS::sy, eve::animation::TransformTRS::sz , 以及 value.
该类的文档由以下文件生成:
- src/modules/animation/ControlPose.h
- src/modules/animation/ControlPose.cpp