twerwerwer

This commit is contained in:
2026-10-18 11:54:01 -04:00
parent a6cee2adc1
commit d84d59a444
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ Engine::Engine()
rendersystem = new RenderSystem(); rendersystem = new RenderSystem();
rendersystem->Initialize(); rendersystem->Initialize();
physicsengine = new Physics(); physicsengine = new Physics();
physicsengine->gravity *= 1.25f; // slightly stronger gravity to suit the larger map physicsengine->SetGravity(physicsengine->GetGravity() * 1.25f); // slightly stronger gravity to suit the larger map
mainf = new Folder(); mainf = new Folder();
camera = new Camera(); camera = new Camera();
camera->t.TranslateTo({ 0.0f, 5.0f, 0.0f }); camera->t.TranslateTo({ 0.0f, 5.0f, 0.0f });
+3
View File
@@ -106,6 +106,9 @@ private:
public: public:
Physics() {} Physics() {}
const glm::vec3& GetGravity() const noexcept { return gravity; }
void SetGravity(const glm::vec3& g) noexcept { gravity = g; }
int GetObjectAmount() const noexcept { return (int)objects.size(); } int GetObjectAmount() const noexcept { return (int)objects.size(); }
void AddObject(p* obj) { objects.push_back(obj); } void AddObject(p* obj) { objects.push_back(obj); }
const std::vector<p*>& GetObjects() const { return objects; } const std::vector<p*>& GetObjects() const { return objects; }