#include <Physics.h>
Inheritance diagram for Physics:

Public Member Functions | |
| Physics () | |
| Create a new Physics object, zeroing all physics variables except mass and the gravity modifier which are set to 1.0. | |
Public Attributes | |
| float | pos [3] |
| Position (x,y,z) in meters. | |
| float | rot [3] |
| Rotation of this object (ax, ay, az) in radians. | |
| float | vel [3] |
| Velocity of in m/s. | |
| float | aVel [3] |
| Angular velocity in rad/s. | |
| float | mass |
| The mass of this object. | |
| float | gravityMod |
| A modifier for how much this object is affected by gravity. 1.0 is the most common value. | |
Static Public Attributes | |
| static float | gravity |
| The gravity in the world where the physics objects "live". This defaults to 9.82. | |
| Physics::Physics | ( | ) | [inline] |
Create a new Physics object, zeroing all physics variables except mass and the gravity modifier which are set to 1.0.
| float Physics::aVel[3] |
Angular velocity in rad/s.
float Physics::gravity [static] |
The gravity in the world where the physics objects "live". This defaults to 9.82.
| float Physics::gravityMod |
A modifier for how much this object is affected by gravity. 1.0 is the most common value.
| float Physics::mass |
The mass of this object.
| float Physics::pos[3] |
Position (x,y,z) in meters.
| float Physics::rot[3] |
Rotation of this object (ax, ay, az) in radians.
| float Physics::vel[3] |
Velocity of in m/s.
1.4.7