Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <PointMass.h>
Public Member Functions | |
PointMass () | |
virtual | ~PointMass () |
virtual void | Update (float dt) |
virtual float | GetDragArea () |
virtual float | GetDragCoefficient () |
virtual float | GetLiftCoefficient () |
virtual float | GetVolumeUnderHeight (float height) |
virtual Matrix4x4 | GetTransformation () |
void | SetVelocityDamper (const float damper) |
Public Member Functions inherited from Ult::PhysicsObject | |
PhysicsObject () | |
virtual | ~PhysicsObject () |
virtual void | SetMass (const float m) |
virtual float | GetMass () const |
virtual float | GetMassInv () const |
virtual float | GetVolume () const |
virtual void | SetLift (const float lVal, const Vector3D &lVec) |
virtual float | GetLift () const |
virtual Vector3D | GetLiftVec () const |
virtual float | GetSpeed () const |
virtual Vector3D | GetOldPosition () const |
virtual void | SetPosition (const Vector3D &pos) |
virtual Vector3D | GetPosition () |
virtual void | SetForce (const Vector3D &f) |
virtual Vector3D | GetForce () const |
virtual void | AddForce (const Vector3D &f) |
virtual void | SetVelocity (const Vector3D &v) |
virtual Vector3D | GetVelocity () const |
virtual void | AddVelocity (const Vector3D &v) |
virtual Vector3D | GetAcceleration () const |
Protected Attributes | |
float | mVelocityDamper |
Protected Attributes inherited from Ult::PhysicsObject | |
float | mMass |
float | mMassInv |
float | mVolume |
float | mLift |
float | mSpeed |
Vector3D | mOldPosition |
Vector3D | mPosition |
Vector3D | mForce |
Vector3D | mVelocity |
Vector3D | mAcceleration |
Vector3D | mLiftVector |
Represents a collection of 0-volume bodies
|
inline |
PointMass constructor
|
inlinevirtual |
PointMass destructor
|
inlinevirtual |
Get drag area - returns 0.
Implements Ult::PhysicsObject.
|
inlinevirtual |
Get drag coefficient - returns 0.05
Implements Ult::PhysicsObject.
|
inlinevirtual |
Get lift coefficient - returns 0.
Implements Ult::PhysicsObject.
|
virtual |
Returns the translation matrix for it's position.
Implements Ult::PhysicsObject.
|
inlinevirtual |
If y-position >= height, returns 0; else returns 1.
Implements Ult::PhysicsObject.
|
inline |
Sets the value which scales velocity during Update.
|
virtual |
Applies acceleration/velocity, updates speed, and resets force for the given timestep (in seconds).
Implements Ult::PhysicsObject.
|
protected |