Now root motion works much better; raft/boat climbing

This commit is contained in:
2025-10-04 04:10:21 +03:00
parent 25280a9cbe
commit 19a1275a8a
14 changed files with 844 additions and 149 deletions

View File

@@ -19,6 +19,7 @@ struct CharacterBase {
Ogre::Skeleton *mSkeleton;
Ogre::Node *mRootBone;
Ogre::Vector3 mBoneMotion;
Ogre::Vector3 mBonePrevMotion;
Ogre::Vector3 mGoalDirection; // actual intended direction in world-space
bool is_submerged;
};
@@ -42,6 +43,7 @@ struct CharacterVelocity {
};
struct CharacterInActuator {
Ogre::String animationState;
Vector3 prevMotion;
};
struct CharacterModule {
CharacterModule(flecs::world &ecs);