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

Public Member Functions

 QPhysXActorBody (QAbstractPhysicsNode *frontEnd)
 
void cleanup (PhysXWorld *physX) override
 
void init (QPhysicsWorld *world, PhysXWorld *physX) override
 
void sync (float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
 
void markDirtyShapes () override
 
void rebuildDirtyShapes (QPhysicsWorld *world, PhysXWorld *physX) override
 
virtual void createActor (PhysXWorld *physX)
 
bool debugGeometryCapability () override
 
physx::PxTransform getGlobalPose () override
 
void buildShapes (PhysXWorld *physX)
 
- Public Member Functions inherited from QAbstractPhysXNode
 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

physx::PxRigidActor * actor = nullptr
 
- Public Attributes inherited from QAbstractPhysXNode
QVector< physx::PxShape * > shapes
 
physx::PxMaterial * material = nullptr
 
QAbstractPhysicsNodefrontendNode = nullptr
 
bool isRemoved = false
 

Additional Inherited Members

- Static Public Attributes inherited from QAbstractPhysXNode
static physx::PxMaterial * defaultMaterial = nullptr
 

Detailed Description

Definition at line 591 of file qphysicsworld.cpp.

Constructor & Destructor Documentation

◆ QPhysXActorBody()

QPhysXActorBody::QPhysXActorBody ( QAbstractPhysicsNode frontEnd)
inline

Definition at line 594 of file qphysicsworld.cpp.

Member Function Documentation

◆ buildShapes()

void QPhysXActorBody::buildShapes ( PhysXWorld physX)

Definition at line 844 of file qphysicsworld.cpp.

References actor, QAbstractPhysXNode::frontendNode, QAbstractPhysicsNode::getCollisionShapesList(), getPhysXLocalTransform(), QAbstractPhysXNode::material, StaticPhysXObjects::physics, PHYSX_RELEASE, s_physx, QAbstractPhysXNode::shapes, and QAbstractPhysXNode::useTriggerFlag().

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

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

◆ cleanup()

void QPhysXActorBody::cleanup ( PhysXWorld physX)
inlineoverridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 595 of file qphysicsworld.cpp.

References actor, QAbstractPhysXNode::cleanup(), PHYSX_RELEASE, and PhysXWorld::scene.

+ Here is the call graph for this function:

◆ createActor()

void QPhysXActorBody::createActor ( PhysXWorld physX)
virtual

Reimplemented in QPhysXStaticBody.

Definition at line 713 of file qphysicsworld.cpp.

References actor, QAbstractPhysXNode::frontendNode, getPhysXWorldTransform(), StaticPhysXObjects::physics, and s_physx.

Referenced by init().

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

◆ debugGeometryCapability()

bool QPhysXActorBody::debugGeometryCapability ( )
inlineoverridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 609 of file qphysicsworld.cpp.

◆ getGlobalPose()

physx::PxTransform QPhysXActorBody::getGlobalPose ( )
inlineoverridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 610 of file qphysicsworld.cpp.

References actor.

◆ init()

void QPhysXActorBody::init ( QPhysicsWorld world,
PhysXWorld physX 
)
overridevirtual

Implements QAbstractPhysXNode.

Definition at line 725 of file qphysicsworld.cpp.

References actor, createActor(), QAbstractPhysXNode::createMaterial(), QAbstractPhysXNode::frontendNode, Q_ASSERT, PhysXWorld::scene, and QAbstractPhysXNode::setShapesDirty().

+ Here is the call graph for this function:

◆ markDirtyShapes()

void QPhysXActorBody::markDirtyShapes ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 813 of file qphysicsworld.cpp.

References actor, QAbstractPhysXNode::frontendNode, fuzzyEquals(), QAbstractPhysicsNode::getCollisionShapesList(), getPhysXLocalTransform(), i, QAbstractPhysXNode::setShapesDirty(), QAbstractPhysXNode::shapes, and QAbstractPhysXNode::shapesDirty().

+ Here is the call graph for this function:

◆ rebuildDirtyShapes()

void QPhysXActorBody::rebuildDirtyShapes ( QPhysicsWorld world,
PhysXWorld physX 
)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Reimplemented in QPhysXDynamicBody.

Definition at line 874 of file qphysicsworld.cpp.

References buildShapes(), QAbstractPhysXNode::setShapesDirty(), and QAbstractPhysXNode::shapesDirty().

+ Here is the call graph for this function:

◆ sync()

void QPhysXActorBody::sync ( float  deltaTime,
QHash< QQuick3DNode *, QMatrix4x4 > &  transformCache 
)
overridevirtual

Implements QAbstractPhysXNode.

Reimplemented in QPhysXStaticBody, QPhysXDynamicBody, and QPhysXTriggerBody.

Definition at line 1021 of file qphysicsworld.cpp.

References QAbstractPhysXNode::frontendNode, QAbstractPhysXNode::material, and updatePhysXMaterial().

Referenced by QPhysXStaticBody::sync(), and QPhysXDynamicBody::sync().

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

Member Data Documentation

◆ actor


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