Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <PhysicsSpace.h>
Public Member Functions | |
PhysicsSpace () | |
virtual | ~PhysicsSpace () |
void | InfluenceObject (PhysicsObject *obj, float influencePct) |
void | SetDensity (const float density) |
float | GetDensity () const |
void | SetSurfaceHeight (const float height) |
float | GetSurfaceHeight () const |
void | SetGravity (const Vector3D &v) |
Vector3D | GetGravity () const |
void | SetIsAirAtmosphere (const bool b) |
bool | IsAirAtmosphere () const |
Protected Attributes | |
float | mDensity |
float | mSurfaceHeight |
Vector3D | mGravity |
bool | mIsAir |
Represents an area containing physical bodies.
Ult::PhysicsSpace::PhysicsSpace | ( | ) |
PhysicsSpace constructor.
|
virtual |
PhysicsSpace destructor.
|
inline |
Returns the density of the space.
|
inline |
Returns the gravity value of the space.
|
inline |
Returns the height of the space.
void Ult::PhysicsSpace::InfluenceObject | ( | PhysicsObject * | obj, |
float | influencePct ) |
Apply the properties of this space (drag, buoyancy, gravity, lift) to the input object with the given influence percentage.
|
inline |
Returns whether this space is air or not.
|
inline |
Set the density of the space.
|
inline |
Set the gravity value of the space.
|
inline |
Set whether this space represents air or not. If true, buoyancy is not used/calculated.
|
inline |
Sets the height of the space, for liquid/water sim.
|
protected |
|
protected |
|
protected |
|
protected |