载入中...
搜索中...
未找到
RootMotionPolicy.h
浏览该文件的文档.
32[[nodiscard]] constexpr RootMotionLockAxes operator|(RootMotionLockAxes a, RootMotionLockAxes b) noexcept {
33 return static_cast<RootMotionLockAxes>(static_cast<std::uint8_t>(a) | static_cast<std::uint8_t>(b));
37[[nodiscard]] constexpr RootMotionLockAxes operator&(RootMotionLockAxes a, RootMotionLockAxes b) noexcept {
38 return static_cast<RootMotionLockAxes>(static_cast<std::uint8_t>(a) & static_cast<std::uint8_t>(b));
76[[nodiscard]] EVENGINE_API_WORLD eve::Result<void> validateRootMotionPolicy(const RootMotionPolicy& policy);
104[[nodiscard]] EVENGINE_API_WORLD eve::Result<RootMotionLockAxes> parseRootMotionLockAxes(std::string_view name);
110[[nodiscard]] EVENGINE_API_WORLD eve::Result<RootMotionApplySpace> parseRootMotionApplySpace(std::string_view name);
Move-only, checked operation results for the common layer.
Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.
Definition AnimPose.h:17
Definition Animation.cpp:58
RootMotionLockAxes
Per-axis translation locks for extracted root-motion deltas.
Definition RootMotionPolicy.h:21
@ HorizontalXZ
eve::Result< void > bakeRootMotionIntoPose(AnimPose &pose, int boneIndex, const TransformTRS &referenceRoot, const RootMotionPolicy &policy)
Remove extracted root motion from a pose when bake flags are set.
Definition RootMotionPolicy.cpp:75
eve::Result< void > validateRootMotionPolicy(const RootMotionPolicy &policy)
Validate policy fields.
Definition RootMotionPolicy.cpp:48
TransformTRS applyRootMotionPolicy(const TransformTRS &rawDelta, const RootMotionPolicy &policy)
Filter a raw root-bone delta into a controller-facing delta.
Definition RootMotionPolicy.cpp:61
constexpr RootMotionLockAxes operator|(RootMotionLockAxes a, RootMotionLockAxes b) noexcept
Bitwise OR for RootMotionLockAxes masks.
Definition RootMotionPolicy.h:32
RootMotionApplySpace
Coordinate space used when publishing root-motion translation.
Definition RootMotionPolicy.h:52
@ CharacterFacing
eve::Result< RootMotionLockAxes > parseRootMotionLockAxes(std::string_view name)
Parse a script/C++ lock-axis name.
Definition RootMotionPolicy.cpp:113
constexpr bool hasLock(RootMotionLockAxes mask, RootMotionLockAxes axis) noexcept
True when mask contains the given axis bit.
Definition RootMotionPolicy.h:42
eve::Result< RootMotionApplySpace > parseRootMotionApplySpace(std::string_view name)
Parse a script/C++ apply-space name.
Definition RootMotionPolicy.cpp:133
constexpr RootMotionLockAxes operator&(RootMotionLockAxes a, RootMotionLockAxes b) noexcept
Bitwise AND for RootMotionLockAxes masks.
Definition RootMotionPolicy.h:37
Policy applied after raw root-bone delta extraction. @ownership Value type; owned by AnimPlayer or th...
Definition RootMotionPolicy.h:62
bool bakeTranslationIntoPose
Definition RootMotionPolicy.h:65
RootMotionLockAxes lockAxes
Definition RootMotionPolicy.h:63
bool bakeRotationIntoPose
Definition RootMotionPolicy.h:66
RootMotionApplySpace applySpace
Definition RootMotionPolicy.h:64
float characterYaw
Yaw in radians for CharacterFacing; ignored for BoneLocal.
Definition RootMotionPolicy.h:69
Local TRS used by skeletal animation (quaternion xyzw).
Definition AnimMath.h:9