Public Member Functions | Protected Attributes | Friends

GPhysicsManager Class Reference

#include <GPhysicsManager.h>

Inheritance diagram for GPhysicsManager:
GSingletonManager< GPhysicsManager >

List of all members.

Public Member Functions

 GPhysicsManager ()
int AddForce (GModel *, GVec4f)
int Simulate (float dt)
int InitPhysics (void)
NxActor * RegisterPhysicalObject (GObject *Object, GVec4f Position, GVec4f Dimensions, BoundingType bt)
int RegisterPhysicalModel (GModel *Model)
int DeleteActor (NxActor *Actor)
int DeleteController (NxController *Controller)
int ApplyForce (GSkeleton *Skeleton, GVec4f Force)
 Apply a force vector to a skeletons root-bone.
GVec4f GetLinearVelocity (GModel *Model)
 Fetch a Models linear velocity.
int RegisterController (GModel *Model)
int RegisterBullet (Bullet *bullet)
int RegisterGrenade (Grenade *grenade)
int RegisterParticle (GParticle *particle)
int CastRay (GVec4f Origin, GVec4f Direction)
float GetLastRayCastDistance (void)

Protected Attributes

NxPhysicsSDK * mPhysicsSDK
NxScene * mScene
NxActor * mActor
NxControllerManager * ControllerManager
NxCookingInterface * Cooking
float LastRayCastDistance
myRaycastReportMyReport

Friends

class myRaycastReport

Constructor & Destructor Documentation

GPhysicsManager::GPhysicsManager ( void   ) 

Member Function Documentation

int GPhysicsManager::AddForce ( GModel Model,
GVec4f  Velocity 
)
int GPhysicsManager::ApplyForce ( GSkeleton Skeleton,
GVec4f  Force 
)

Apply a force vector to a skeletons root-bone.

int GPhysicsManager::CastRay ( GVec4f  Origin,
GVec4f  Direction 
)
int GPhysicsManager::DeleteActor ( NxActor *  Actor  ) 
int GPhysicsManager::DeleteController ( NxController *  Controller  ) 
float GPhysicsManager::GetLastRayCastDistance ( void   ) 
GVec4f GPhysicsManager::GetLinearVelocity ( GModel Model  ) 

Fetch a Models linear velocity.

int GPhysicsManager::InitPhysics ( void   ) 
int GPhysicsManager::RegisterBullet ( Bullet bullet  ) 
int GPhysicsManager::RegisterController ( GModel Model  ) 
int GPhysicsManager::RegisterGrenade ( Grenade grenade  ) 
int GPhysicsManager::RegisterParticle ( GParticle particle  ) 
int GPhysicsManager::RegisterPhysicalModel ( GModel Model  ) 
NxActor * GPhysicsManager::RegisterPhysicalObject ( GObject Object,
GVec4f  Position,
GVec4f  Dimensions,
BoundingType  bt 
)
int GPhysicsManager::Simulate ( float  dt  ) 

Friends And Related Function Documentation

friend class myRaycastReport [friend]

Member Data Documentation

NxControllerManager* GPhysicsManager::ControllerManager [protected]
NxCookingInterface* GPhysicsManager::Cooking [protected]
NxActor* GPhysicsManager::mActor [protected]
NxPhysicsSDK* GPhysicsManager::mPhysicsSDK [protected]
NxScene* GPhysicsManager::mScene [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines