gePhysicsObject
From GriffinEngine
The gePhysicsObject is a part of geObject3D. A gePhysicsObject contains all the information required to implement some simple physics.
Contents
[hide]Usage
Inheritance
- geObject
- geObject3D
- gePhysicsObject
- geObject3D
Reference
Fields
static float3 gravity; // gravity vector (Y component should be NEGATIVE to fall down)
static float ground; // ground level (relative to world origin, on the vertical/Y axis)
float3 acceleration; // acceleration vector
bool useGravity; // Whether to apply gravity to this object.
Constructors
gePhysicsObject();
Accessors
const float3* getAcceleration() const;
Methods
void Update( double time_passed );
- The update function makes changes to the object depending on the time.
Physics |
---|
gePhysicsObject |