Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
physicsmanager.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <box2d/box2d.h>
4 
5 //namespace fireworks { namespace managers {
6 
11  {
12  public:
14  b2Vec2 Gravity;
16  b2World* PhysicsWorld;
17  private:
18  static PhysicsManager* m_PhysicsManager;
19  private:
21  {
22  Gravity = b2Vec2(0.0f, -9.81f);
23  PhysicsWorld = new b2World(Gravity);
24  if (!m_PhysicsManager)
25  {
26  m_PhysicsManager = new PhysicsManager();
27  }
28  }
29 
30  };
31 
32 //} }
b2Vec2 Gravity
The worlds gravity.
Definition: physicsmanager.h:14
b2World * PhysicsWorld
The Physics world object.
Definition: physicsmanager.h:16
A singleton Physics Manager.
Definition: physicsmanager.h:10