Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
fireworks::physics Namespace Reference

Classes

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

Enumerations

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

Variables

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

Enumeration Type Documentation

◆ RigidBodyType

The type of the rigid body.

Enumerator
Static 
Dynamic 
Kinematic 

Variable Documentation

◆ M2PX

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)

◆ M2PY

const float fireworks::physics::M2PY = 150.0f

◆ P2MX

const float fireworks::physics::P2MX = 1.0f / M2PX

◆ P2MY

const float fireworks::physics::P2MY = 1.0f / M2PY