Updates
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user