#include <GPhysicsManager.h>
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 |
myRaycastReport * | MyReport |
Friends | |
class | myRaycastReport |
GPhysicsManager::GPhysicsManager | ( | void | ) |
Apply a force vector to a skeletons root-bone.
int GPhysicsManager::DeleteActor | ( | NxActor * | Actor | ) |
int GPhysicsManager::DeleteController | ( | NxController * | Controller | ) |
float GPhysicsManager::GetLastRayCastDistance | ( | void | ) |
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 | ) |
friend class myRaycastReport [friend] |
NxControllerManager* GPhysicsManager::ControllerManager [protected] |
NxCookingInterface* GPhysicsManager::Cooking [protected] |
float GPhysicsManager::LastRayCastDistance [protected] |
NxActor* GPhysicsManager::mActor [protected] |
NxPhysicsSDK* GPhysicsManager::mPhysicsSDK [protected] |
NxScene* GPhysicsManager::mScene [protected] |
myRaycastReport* GPhysicsManager::MyReport [protected] |