Physics Class Reference

The physics class contains information about an object in space requried to follow the Newton's laws of physics. More...

#include <Physics.h>

Inheritance diagram for Physics:

Inheritance graph
[legend]
List of all members.

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.

Detailed Description

The physics class contains information about an object in space requried to follow the Newton's laws of physics.

Author:
Daniel Aarno
Version:
v0.0.0


Constructor & Destructor Documentation

Physics::Physics (  )  [inline]

Create a new Physics object, zeroing all physics variables except mass and the gravity modifier which are set to 1.0.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:26 2007 for MetalWarriors by  doxygen 1.4.7