Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
PhysXWorld Struct Reference
+ Collaboration diagram for PhysXWorld:

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 414 of file qphysicsworld.cpp.

Member Function Documentation

◆ createScene()

void PhysXWorld::createScene ( float  typicalLength,
float  typicalSpeed,
const QVector3D gravity,
bool  enableCCD,
QPhysicsWorld physicsWorld 
)
inline

Definition at line 466 of file qphysicsworld.cpp.

References callback, contactReportFilterShader(), contactReportFilterShaderCCD(), StaticPhysXObjects::dispatcher, StaticPhysXObjects::foundation, StaticPhysXObjects::physics, StaticPhysXObjects::physicsCreated, StaticPhysXObjects::pvd, qFatal, qWarning, s_physx, scene, and QPhysicsUtils::toPhysXType().

+ Here is the call graph for this function:

◆ createWorld()

void PhysXWorld::createWorld ( )
inline

Definition at line 416 of file qphysicsworld.cpp.

References StaticPhysXObjects::cooking, StaticPhysXObjects::defaultAllocatorCallback, StaticPhysXObjects::defaultErrorCallback, StaticPhysXObjects::foundation, StaticPhysXObjects::foundationCreated, StaticPhysXObjects::foundationRefCount, StaticPhysXObjects::pvd, qFatal, s_physx, and StaticPhysXObjects::transport.

Referenced by QPhysicsWorld::QPhysicsWorld().

+ Here is the caller graph for this function:

◆ deleteWorld()

void PhysXWorld::deleteWorld ( )
inline

Member Data Documentation

◆ callback

SimulationEventCallback* PhysXWorld::callback = nullptr

Definition at line 508 of file qphysicsworld.cpp.

Referenced by createScene(), and deleteWorld().

◆ controllerManager

physx::PxControllerManager* PhysXWorld::controllerManager = nullptr

Definition at line 507 of file qphysicsworld.cpp.

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

◆ isRunning

bool PhysXWorld::isRunning = false

Definition at line 510 of file qphysicsworld.cpp.

Referenced by SimulationWorker::simulateFrame().

◆ scene


The documentation for this struct was generated from the following file: