This commit is contained in:
2025-09-05 22:56:48 +03:00
parent 25816c5658
commit 92ec3e9497
17 changed files with 1320 additions and 453 deletions

View File

@@ -216,7 +216,6 @@ CharacterModule::CharacterModule(flecs::world &ecs)
body.gvelocity += (gravity + b) * delta;
body.gvelocity.y = Ogre::Math::Clamp(
body.gvelocity.y, -2.5f, 2.5f);
std::cout << "InWater!!!!!!!\n";
} else
body.gvelocity += gravity * delta;
body.gvelocity *= 0.99;
@@ -518,6 +517,7 @@ CharacterModule::CharacterModule(flecs::world &ecs)
ch.mBodyNode->_getDerivedPosition().y > 0.05f)
e.remove<InWater>();
});
#if 0
ecs.system<const EngineData, CharacterBase, CharacterBody>(
"DisplayPlayerPos")
.kind(flecs::OnUpdate)
@@ -528,6 +528,7 @@ CharacterModule::CharacterModule(flecs::world &ecs)
std::cout << "player: " << ch.mBodyNode->getPosition()
<< "\n";
});
#endif
}
void CharacterModule::setAnimation(AnimationControl &anim)