Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
rigidbody2d.h File Reference
#include <box2d/box2d.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "../components/component.h"
Include dependency graph for rigidbody2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fireworks::physics::RigidBody2D
 RigidBody 2D Physics component to simulate real time physics. More...
 

Namespaces

 fireworks
 
 fireworks::physics
 

Enumerations

enum  fireworks::physics::RigidBodyType { fireworks::physics::Static = b2_staticBody, fireworks::physics::Dynamic = b2_dynamicBody, fireworks::physics::Kinematic = b2_kinematicBody }
 The type of the rigid body. More...
 

Variables

const float fireworks::physics::M2PX = 250.0f
 Box2D scaling factors (set these up dynamically using the projections matrix's Aspect Ratio and Screen coordinate range) More...
 
const float fireworks::physics::M2PY = 150.0f
 
const float fireworks::physics::P2MX = 1.0f / M2PX
 
const float fireworks::physics::P2MY = 1.0f / M2PY