Let physics run for a while to prevent bugs

This commit is contained in:
2025-09-08 11:40:53 +03:00
parent 3f59a384e4
commit 4d0fb8f60f
4 changed files with 35 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ void setup(Ogre::SceneManager *scnMgr, Ogre::Bullet::DynamicsWorld *world,
.each([](EngineData &eng) {
eng.delta = ECS::get().delta_time();
});
ecs.set<EngineData>({ scnMgr, world, 0.0f });
ecs.set<EngineData>({ scnMgr, world, 0.0f, 0.0f });
ecs.set<Camera>({ cameraNode, camera, false });
ecs.add<GameData>();
ecs.add<Input>();