twerwerwer
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ Engine::Engine()
|
||||
rendersystem = new RenderSystem();
|
||||
rendersystem->Initialize();
|
||||
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();
|
||||
camera = new Camera();
|
||||
camera->t.TranslateTo({ 0.0f, 5.0f, 0.0f });
|
||||
|
||||
@@ -106,6 +106,9 @@ private:
|
||||
public:
|
||||
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(); }
|
||||
void AddObject(p* obj) { objects.push_back(obj); }
|
||||
const std::vector<p*>& GetObjects() const { return objects; }
|
||||
|
||||
Reference in New Issue
Block a user