Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QAbstractPhysXNode Class Referenceabstract
+ Inheritance diagram for QAbstractPhysXNode:
+ Collaboration diagram for QAbstractPhysXNode:

Public Member Functions

 QAbstractPhysXNode (QAbstractPhysicsNode *node)
 
virtual ~QAbstractPhysXNode ()
 
bool cleanupIfRemoved (PhysXWorld *physX)
 
virtual void init (QPhysicsWorld *world, PhysXWorld *physX)=0
 
virtual void updateDefaultDensity (float)
 
virtual void createMaterial (PhysXWorld *physX)
 
void createMaterialFromQtMaterial (PhysXWorld *physX, QPhysicsMaterial *qtMaterial)
 
virtual void markDirtyShapes ()
 
virtual void rebuildDirtyShapes (QPhysicsWorld *, PhysXWorld *)
 
virtual void sync (float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache)=0
 
virtual void cleanup (PhysXWorld *)
 
virtual bool debugGeometryCapability ()
 
virtual physx::PxTransform getGlobalPose ()
 
virtual bool useTriggerFlag ()
 
virtual DebugDrawBodyType getDebugDrawBodyType ()
 
bool shapesDirty () const
 
void setShapesDirty (bool dirty)
 

Public Attributes

QVector< physx::PxShape * > shapes
 
physx::PxMaterial * material = nullptr
 
QAbstractPhysicsNodefrontendNode = nullptr
 
bool isRemoved = false
 

Static Public Attributes

static physx::PxMaterial * defaultMaterial = nullptr
 

Detailed Description

Definition at line 522 of file qphysicsworld.cpp.

Constructor & Destructor Documentation

◆ QAbstractPhysXNode()

QAbstractPhysXNode::QAbstractPhysXNode ( QAbstractPhysicsNode node)
inline

Definition at line 525 of file qphysicsworld.cpp.

◆ ~QAbstractPhysXNode()

virtual QAbstractPhysXNode::~QAbstractPhysXNode ( )
inlinevirtual

Definition at line 529 of file qphysicsworld.cpp.

Member Function Documentation

◆ cleanup()

virtual void QAbstractPhysXNode::cleanup ( PhysXWorld )
inlinevirtual

Reimplemented in QPhysXCharacterController, and QPhysXActorBody.

Definition at line 541 of file qphysicsworld.cpp.

References defaultMaterial, material, PHYSX_RELEASE, and shapes.

Referenced by QPhysXCharacterController::cleanup(), QPhysXActorBody::cleanup(), and cleanupIfRemoved().

+ Here is the caller graph for this function:

◆ cleanupIfRemoved()

bool QAbstractPhysXNode::cleanupIfRemoved ( PhysXWorld physX)

Definition at line 566 of file qphysicsworld.cpp.

References cleanup(), and isRemoved.

+ Here is the call graph for this function:

◆ createMaterial()

void QAbstractPhysXNode::createMaterial ( PhysXWorld physX)
virtual

Reimplemented in QPhysXCharacterController, and QPhysXRigidBody.

Definition at line 698 of file qphysicsworld.cpp.

References createMaterialFromQtMaterial().

Referenced by QPhysXActorBody::init().

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

◆ createMaterialFromQtMaterial()

void QAbstractPhysXNode::createMaterialFromQtMaterial ( PhysXWorld physX,
QPhysicsMaterial qtMaterial 
)

◆ debugGeometryCapability()

virtual bool QAbstractPhysXNode::debugGeometryCapability ( )
inlinevirtual

Reimplemented in QPhysXActorBody.

Definition at line 548 of file qphysicsworld.cpp.

◆ getDebugDrawBodyType()

virtual DebugDrawBodyType QAbstractPhysXNode::getDebugDrawBodyType ( )
inlinevirtual

Reimplemented in QPhysXStaticBody, QPhysXDynamicBody, and QPhysXTriggerBody.

Definition at line 552 of file qphysicsworld.cpp.

References Unknown.

◆ getGlobalPose()

virtual physx::PxTransform QAbstractPhysXNode::getGlobalPose ( )
inlinevirtual

Reimplemented in QPhysXActorBody.

Definition at line 549 of file qphysicsworld.cpp.

◆ init()

virtual void QAbstractPhysXNode::init ( QPhysicsWorld world,
PhysXWorld physX 
)
pure virtual

◆ markDirtyShapes()

virtual void QAbstractPhysXNode::markDirtyShapes ( )
inlinevirtual

Reimplemented in QPhysXActorBody.

Definition at line 537 of file qphysicsworld.cpp.

◆ rebuildDirtyShapes()

virtual void QAbstractPhysXNode::rebuildDirtyShapes ( QPhysicsWorld ,
PhysXWorld  
)
inlinevirtual

Reimplemented in QPhysXActorBody, and QPhysXDynamicBody.

Definition at line 538 of file qphysicsworld.cpp.

◆ setShapesDirty()

void QAbstractPhysXNode::setShapesDirty ( bool  dirty)
inline

Definition at line 555 of file qphysicsworld.cpp.

References frontendNode.

Referenced by QPhysXActorBody::init(), QPhysXActorBody::markDirtyShapes(), QPhysXActorBody::rebuildDirtyShapes(), and QPhysXDynamicBody::rebuildDirtyShapes().

+ Here is the caller graph for this function:

◆ shapesDirty()

bool QAbstractPhysXNode::shapesDirty ( ) const
inline

Definition at line 554 of file qphysicsworld.cpp.

References frontendNode.

Referenced by QPhysXActorBody::markDirtyShapes(), QPhysXActorBody::rebuildDirtyShapes(), and QPhysXDynamicBody::rebuildDirtyShapes().

+ Here is the caller graph for this function:

◆ sync()

virtual void QAbstractPhysXNode::sync ( float  deltaTime,
QHash< QQuick3DNode *, QMatrix4x4 > &  transformCache 
)
pure virtual

◆ updateDefaultDensity()

virtual void QAbstractPhysXNode::updateDefaultDensity ( float  )
inlinevirtual

Reimplemented in QPhysXDynamicBody.

Definition at line 534 of file qphysicsworld.cpp.

◆ useTriggerFlag()

virtual bool QAbstractPhysXNode::useTriggerFlag ( )
inlinevirtual

Reimplemented in QPhysXTriggerBody.

Definition at line 551 of file qphysicsworld.cpp.

Referenced by QPhysXActorBody::buildShapes().

+ Here is the caller graph for this function:

Member Data Documentation

◆ defaultMaterial

physx::PxMaterial * QAbstractPhysXNode::defaultMaterial = nullptr
static

Definition at line 561 of file qphysicsworld.cpp.

Referenced by cleanup(), and createMaterialFromQtMaterial().

◆ frontendNode

◆ isRemoved

bool QAbstractPhysXNode::isRemoved = false

Definition at line 560 of file qphysicsworld.cpp.

Referenced by cleanupIfRemoved(), and QPhysicsWorld::deregisterNode().

◆ material

physx::PxMaterial* QAbstractPhysXNode::material = nullptr

◆ shapes


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