Now we have complete clothes pipeline except shape keys

This commit is contained in:
2026-02-22 17:58:20 +03:00
parent ccf451336d
commit ef4c675d98
12 changed files with 817 additions and 6 deletions

View File

@@ -203,8 +203,10 @@ CharacterAnimationModule::CharacterAnimationModule(flecs::world &ecs)
Ogre::Vector3 pos = ch.mBodyNode->getPosition();
Ogre::Vector3 boneMotion = ch.mBoneMotion;
v.velocity = Ogre::Vector3::ZERO;
if (eng.delta <= 0.005)
return;
float safeDelta =
Ogre::Math::Clamp(eng.delta, 0.001f, 0.99f);
Ogre::Math::Clamp(eng.delta, 0.005f, 0.99f);
#if 0
if (!e.has<CharacterInActuator>()) {
v.velocity = Ogre::Math::lerp(