载入中...
搜索中...
未找到
RootMotionPolicy.h 文件参考
#include "common/Export.h"
#include "animation/AnimMath.h"
#include "common/Result.h"
#include <cstdint>
#include <string_view>

浏览源代码.

类

struct  eve::animation::RootMotionPolicy
 Policy applied after raw root-bone delta extraction. @ownership Value type; owned by AnimPlayer or the caller. @thread Owner thread only; no callbacks. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::animation
 

枚举

enum class  eve::animation::RootMotionLockAxes : std::uint8_t {
  eve::animation::None = 0 , eve::animation::X = 1u << 0 , eve::animation::Y = 1u << 1 , eve::animation::Z = 1u << 2 ,
  eve::animation::HorizontalXZ = static_cast<std::uint8_t>(X) | static_cast<std::uint8_t>(Z) , eve::animation::VerticalY = Y , eve::animation::All = static_cast<std::uint8_t>(X) | static_cast<std::uint8_t>(Y) | static_cast<std::uint8_t>(Z)
}
 Per-axis translation locks for extracted root-motion deltas. 更多...
 
enum class  eve::animation::RootMotionApplySpace : std::uint8_t { eve::animation::BoneLocal = 0 , eve::animation::CharacterFacing = 1 }
 Coordinate space used when publishing root-motion translation. 更多...
 

函数

constexpr RootMotionLockAxes eve::animation::operator| (RootMotionLockAxes a, RootMotionLockAxes b) noexcept
 Bitwise OR for RootMotionLockAxes masks.
 
constexpr RootMotionLockAxes eve::animation::operator& (RootMotionLockAxes a, RootMotionLockAxes b) noexcept
 Bitwise AND for RootMotionLockAxes masks.
 
constexpr bool eve::animation::hasLock (RootMotionLockAxes mask, RootMotionLockAxes axis) noexcept
 True when mask contains the given axis bit.
 
eve::Result< void > eve::animation::validateRootMotionPolicy (const RootMotionPolicy &policy)
 Validate policy fields.
 
TransformTRS eve::animation::applyRootMotionPolicy (const TransformTRS &rawDelta, const RootMotionPolicy &policy)
 Filter a raw root-bone delta into a controller-facing delta.
 
eve::Result< void > eve::animation::bakeRootMotionIntoPose (AnimPose &pose, int boneIndex, const TransformTRS &referenceRoot, const RootMotionPolicy &policy)
 Remove extracted root motion from a pose when bake flags are set.
 
eve::Result< RootMotionLockAxes > eve::animation::parseRootMotionLockAxes (std::string_view name)
 Parse a script/C++ lock-axis name.
 
eve::Result< RootMotionApplySpace > eve::animation::parseRootMotionApplySpace (std::string_view name)
 Parse a script/C++ apply-space name.