Better boat handling

This commit is contained in:
2025-11-30 18:28:26 +03:00
parent cd82fb0eed
commit 5b014dcb65
21 changed files with 938 additions and 230 deletions

View File

@@ -546,23 +546,6 @@ CharacterModule::CharacterModule(flecs::world &ecs)
});
#endif
#if 0
ecs.system<const EngineData, const CharacterBody>("UpdatePhysics")
.kind(flecs::OnUpdate)
.with<CharacterUpdatePhysicsState>()
.write<CharacterUpdatePhysicsState>()
.each([](flecs::entity e, const EngineData &eng,
const CharacterBody &body) {
#if 0
if (e.has<CharacterDisablePhysics>()) {
eng.mWorld->getBtWorld()->removeAction(
body.mController);
} else {
eng.mWorld->getBtWorld()->addAction(
body.mController);
}
#endif
e.remove<CharacterUpdatePhysicsState>();
});
#endif
}