Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPhysXWorld Class Reference

#include <qphysxworld_p.h>

+ Collaboration diagram for QPhysXWorld:

Public Member Functions

void createWorld ()
 
void deleteWorld ()
 
void createScene (float typicalLength, float typicalSpeed, const QVector3D &gravity, bool enableCCD, QPhysicsWorld *physicsWorld, unsigned int numThreads)
 

Public Attributes

physx::PxControllerManager * controllerManager = nullptr
 
SimulationEventCallbackcallback = nullptr
 
physx::PxScene * scene = nullptr
 
bool isRunning = false
 

Detailed Description

Definition at line 31 of file qphysxworld_p.h.

Member Function Documentation

◆ createScene()

void QPhysXWorld::createScene ( float typicalLength,
float typicalSpeed,
const QVector3D & gravity,
bool enableCCD,
QPhysicsWorld * physicsWorld,
unsigned int numThreads )

Definition at line 269 of file qphysxworld.cpp.

References callback, contactReportFilterShader(), contactReportFilterShaderCCD(), StaticPhysXObjects::getReference(), qFatal, qWarning, scene, and QPhysicsUtils::toPhysXType().

+ Here is the call graph for this function:

◆ createWorld()

void QPhysXWorld::createWorld ( )

Definition at line 216 of file qphysxworld.cpp.

References StaticPhysXObjects::getReference(), and qFatal.

Referenced by QPhysicsWorld::QPhysicsWorld().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteWorld()

void QPhysXWorld::deleteWorld ( )

Definition at line 243 of file qphysxworld.cpp.

References callback, controllerManager, StaticPhysXObjects::getReference(), PHYSX_RELEASE, and scene.

Referenced by QPhysicsWorld::~QPhysicsWorld().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ callback

SimulationEventCallback* QPhysXWorld::callback = nullptr

Definition at line 41 of file qphysxworld_p.h.

Referenced by createScene(), and deleteWorld().

◆ controllerManager

physx::PxControllerManager* QPhysXWorld::controllerManager = nullptr

Definition at line 40 of file qphysxworld_p.h.

Referenced by QPhysicsWorld::controllerManager(), and deleteWorld().

◆ isRunning

bool QPhysXWorld::isRunning = false

Definition at line 43 of file qphysxworld_p.h.

Referenced by SimulationWorker::simulateFrame().

◆ scene

physx::PxScene* QPhysXWorld::scene = nullptr

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