类 | |
| struct | MotionSchemaState |
| MotionSchemaState public API. 更多... | |
| struct | PoseInertia |
| PoseInertia public API. 更多... | |
函数 | |
| eve::Result< float > | secondsForStep (const eve::SimulationStep &step, bool hasLastTick, eve::SimulationTick lastTick, const char *owner) |
| Validate a scheduler step before an animation object mutates state. | |
| eve::Result< eve::SimulationStep > | legacyStep (float seconds, bool hasLastTick, eve::SimulationTick lastTick, const char *owner) |
| Convert a legacy seconds call to the next local scheduler step. | |
| template<class Body > | |
| int | parallelAnimationItems (std::size_t count, int requested, Body &&body) |
| Parallel animation items. | |
| TransformTRS | mulTRS (const TransformTRS &parent, const TransformTRS &local) |
| Mul trs. | |
| float | featureYaw (const TransformTRS &t) |
| Feature yaw. | |
| std::array< float, 3 > | featureLocal (float x, float y, float z, float yaw) |
| std::array< float, 3 > | featurePosition (const TransformTRS &bone, const TransformTRS &root) |
| void | encodeLocomotionPose (std::span< float > out, const std::array< TransformTRS, 4 > &now, const std::array< TransformTRS, 4 > &past, float interval) |
| Encode locomotion pose. | |
| template<class Sample > | |
| void | encodeLocomotionTrajectory (std::span< float > out, const std::array< Sample, 5 > &samples, float yaw) |
| Encode locomotion trajectory. | |
| float | locomotionWeight (int index) |
| Locomotion weight. | |
| std::array< float, 3 > | schemaRotate (const std::array< float, 3 > &p, const TransformTRS &q, bool inverse=false) |
| std::array< float, 3 > | schemaDifference (const TransformTRS &a, const TransformTRS &b, const TransformTRS &root) |
| void | schemaEncode (std::span< float > output, const MotionFeatureChannel &channel, std::array< float, 3 > value, float lengthScale) |
| Schema encode. | |
| std::array< float, 3 > | schemaHeading (const TransformTRS &bone, const TransformTRS &root, int axis) |
变量 | |
| constexpr int | locomotionPoseOffset = 19 |
| constexpr int | locomotionFeatureCount = 30 |
| constexpr std::array< float, 5 > | locomotionHorizons {-0.05f, 0.f, 0.35f, 0.7f, 1.f} |
函数说明
◆ encodeLocomotionPose()
|
inline |
Encode locomotion pose.
Feature yaw.
在文件 MotionFeatureInternal.h 第 28 行定义.
引用了 current, featureLocal(), featurePosition(), featureYaw(), heading, left, previous, q , 以及 right.
◆ encodeLocomotionTrajectory()
|
inline |
◆ featureLocal()
|
inline |
在文件 MotionFeatureInternal.h 第 17 行定义.
被这些函数引用 encodeLocomotionPose(), encodeLocomotionTrajectory() , 以及 featurePosition().
◆ featurePosition()
|
inline |
Feature local.
在文件 MotionFeatureInternal.h 第 21 行定义.
引用了 bone, featureLocal(), featureYaw() , 以及 root.
被这些函数引用 encodeLocomotionPose().
◆ featureYaw()
|
inline |
Feature yaw.
Atan 2.
在文件 MotionFeatureInternal.h 第 13 行定义.
引用了 t.
被这些函数引用 encodeLocomotionPose() , 以及 featurePosition().
◆ legacyStep()
|
inline |
Convert a legacy seconds call to the next local scheduler step.
Failure.
Success.
在文件 AnimationTime.h 第 34 行定义.
引用了 duration, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Duration::fromSeconds(), eve::detail::StrongUint64< Tag >::incremented(), eve::InvariantViolation , 以及 eve::Result< T >::success().
被这些函数引用 eve::animation::AnimGraph::update(), eve::animation::AnimLayerMixer::update(), eve::animation::AnimSyncGroup::update(), eve::animation::AnimTrail::update(), eve::animation::ControlAnim::update(), eve::animation::ControlPose::update(), eve::animation::MotionMatcher::update(), eve::animation::PhysicalBalancePose::update(), eve::animation::SpineAnim::update(), eve::animation::SpriteAnim::update() , 以及 eve::animation::Tween::update().
◆ locomotionWeight()
|
inline |
◆ mulTRS()
|
inline |
Mul trs.
在文件 AnimTransformInternal.h 第 8 行定义.
引用了 local, eve::animation::TransformTRS::normalizeRotation(), parent, eve::animation::TransformTRS::px, eve::animation::TransformTRS::py, eve::animation::TransformTRS::pz, eve::animation::TransformTRS::qw, qw, eve::animation::TransformTRS::qx, qx, eve::animation::TransformTRS::qy, qy, eve::animation::TransformTRS::qz, qz, eve::animation::TransformTRS::sx, eve::animation::TransformTRS::sy , 以及 eve::animation::TransformTRS::sz.
被这些函数引用 eve::animation::MotionDatabase::SchemaSampler::bone(), eve::animation::AnimPose::computeWorld(), eve::animation::MotionDatabase::SchemaSampler::raw(), eve::animation::MotionDatabase::SchemaSampler::root() , 以及 schemaRotate().
◆ parallelAnimationItems()
| int eve::animation::detail::parallelAnimationItems | ( | std::size_t | count, |
| int | requested, | ||
| Body && | body | ||
| ) |
Parallel animation items.
Errors.
Body.
Run.
在文件 AnimParallelInternal.h 第 14 行定义.
引用了 body, count, error, index, limit , 以及 run.
被这些函数引用 eve::animation::MotionDatabase::bake() , 以及 eve::animation::loadAnimationTrackBatch().
◆ schemaDifference()
|
inline |
◆ schemaEncode()
|
inline |
◆ schemaHeading()
|
inline |
◆ schemaRotate()
|
inline |
在文件 MotionSchemaInternal.h 第 25 行定义.
引用了 mulTRS(), p, eve::animation::TransformTRS::px, q, r , 以及 v.
被这些函数引用 schemaDifference(), schemaHeading() , 以及 eve::animation::MotionMatcher::setFeatureQuery().
◆ secondsForStep()
|
inline |
Validate a scheduler step before an animation object mutates state.
Failure.
Failure.
Failure.
Success.
在文件 AnimationTime.h 第 13 行定义.
引用了 eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, step , 以及 eve::Result< T >::success().
被这些函数引用 eve::animation::AnimSyncGroup::advance(), eve::animation::AnimTrail::advance(), eve::animation::ControlAnim::advance(), eve::animation::ControlPose::advance(), eve::animation::MotionMatcher::advance(), eve::animation::MotionRuntime::advance(), eve::animation::PhysicalBalancePose::advance(), eve::animation::SpineAnim::advance(), eve::animation::SpriteAnim::advance(), eve::animation::Tween::advance(), eve::animation::AnimGraph::advance() , 以及 eve::animation::AnimLayerMixer::advance().
变量说明
◆ locomotionFeatureCount
|
inlineconstexpr |
在文件 MotionFeatureInternal.h 第 9 行定义.
◆ locomotionHorizons
|
inlineconstexpr |
在文件 MotionFeatureInternal.h 第 10 行定义.
◆ locomotionPoseOffset
|
inlineconstexpr |
在文件 MotionFeatureInternal.h 第 8 行定义.