Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 SimulationEventCallback::SimulationEventCallback(), callback, StaticPhysXObjects::getReference(), StaticPhysXObjects::physics, StaticPhysXObjects::physicsCreated, and scene.

Here is the call graph for this function:

◆ createWorld()

void QPhysXWorld::createWorld ( )

Definition at line 216 of file qphysxworld.cpp.

References StaticPhysXObjects::foundation, StaticPhysXObjects::foundationCreated, StaticPhysXObjects::foundationRefCount, and StaticPhysXObjects::getReference().

Here is the call graph for this function:

◆ deleteWorld()

void QPhysXWorld::deleteWorld ( )

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 deleteWorld().

◆ isRunning

bool QPhysXWorld::isRunning = false

Definition at line 43 of file qphysxworld_p.h.

◆ scene

physx::PxScene* QPhysXWorld::scene = nullptr

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