GUInity
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Physics Class Reference

Public Member Functions

int init ()
 

Static Public Member Functions

static bool rayCast (PxScene *scene, const Ray &r, const float distance, PxRaycastBuffer &hitCallback)
 
static void updateActorsTransform (PxScene *scene)
 
static PxRigidDynamic * createRigidDynamic (shared_ptr< Actor > actor)
 
static PxD6Joint * createD6Joint (shared_ptr< Actor > actor, PxRigidBody *rigidBody)
 
static PxShape * createBoxCollider (glm::vec3 halfExtent, glm::vec3 center, shared_ptr< Actor > actor)
 
static PxShape * createBoxCollider (PxVec3 halfExtent, PxVec3 center, shared_ptr< Actor > actor)
 
static PxShape * createBoxCollider (shared_ptr< Actor > actor)
 
static PxShape * createSphereCollider (float radius, glm::vec3 center, shared_ptr< Actor > actor)
 
static PxShape * createSphereCollider (float radius, PxVec3 center, shared_ptr< Actor > actor)
 
static PxShape * createSphereCollider (shared_ptr< Actor > actor)
 
static void setCapsuleOrientation (PxShape *shape, RotateAxis orientation)
 
static PxShape * createCapsuleCollider (float radius, float halfHeight, RotateAxis orientation, glm::vec3 center, shared_ptr< Actor > actor)
 
static PxShape * createCapsuleCollider (float radius, float halfHeight, RotateAxis orientation, PxVec3 center, shared_ptr< Actor > actor)
 
static PxShape * createCapsuleCollider (shared_ptr< Actor > actor)
 
static PxShape * createMeshCollider (shared_ptr< Actor > actor)
 
static PxConvexMesh * getPxConvexMesh (shared_ptr< Mesh > mesh)
 
static PxScene * createPhysicsScene ()
 
static PxMaterial * createMaterial (float friction, float dynamicFriction, float restitution)
 
static shared_ptr< PhysicsMaterialgetDefaultMaterial ()
 
static void tickScene (PxScene *scene)
 
static void shutdown ()
 
static bool convexMeshComputed (shared_ptr< Mesh > mesh)
 

Static Public Attributes

static PxPhysics * gPhysicsSDK
 
static PxDefaultErrorCallback gDefaultErrorCallback
 
static PxDefaultAllocator gDefaultAllocatorCallback
 
static PxFoundation * gFoundation
 
static PhysXEventCallbackphysxEventCallback
 
static PxReal myTimestep = 1.0f / 60.0f
 
static map< shared_ptr< Mesh >, PxConvexMesh * > convexMeshes
 

The documentation for this class was generated from the following files: