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
QPhysXActorBody Class Reference

#include <qphysxactorbody_p.h>

+ Inheritance diagram for QPhysXActorBody:
+ Collaboration diagram for QPhysXActorBody:

Public Member Functions

 QPhysXActorBody (QAbstractPhysicsNode *frontEnd)
 
void cleanup (QPhysXWorld *physX) override
 
void init (QPhysicsWorld *world, QPhysXWorld *physX) override
 
void sync (float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
 
void markDirtyShapes () override
 
void rebuildDirtyShapes (QPhysicsWorld *world, QPhysXWorld *physX) override
 
virtual void createActor (QPhysXWorld *physX)
 
bool debugGeometryCapability () override
 
physx::PxTransform getGlobalPose () override
 
void buildShapes (QPhysXWorld *physX)
 
void updateFilters () override
 
- Public Member Functions inherited from QAbstractPhysXNode
 QAbstractPhysXNode (QAbstractPhysicsNode *node)
 
virtual ~QAbstractPhysXNode ()
 
bool cleanupIfRemoved (QPhysXWorld *physX)
 
virtual void updateDefaultDensity (float density)
 
virtual void createMaterial (QPhysXWorld *physX)
 
void createMaterialFromQtMaterial (QPhysXWorld *physX, QPhysicsMaterial *qtMaterial)
 
virtual bool useTriggerFlag ()
 
virtual DebugDrawBodyType getDebugDrawBodyType ()
 
bool shapesDirty () const
 
void setShapesDirty (bool dirty)
 
bool filtersDirty () const
 
void setFiltersDirty (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 * sDefaultMaterial = nullptr
 

Detailed Description

Definition at line 27 of file qphysxactorbody_p.h.

Constructor & Destructor Documentation

◆ QPhysXActorBody()

QPhysXActorBody::QPhysXActorBody ( QAbstractPhysicsNode * frontEnd)

Definition at line 48 of file qphysxactorbody.cpp.

Member Function Documentation

◆ buildShapes()

void QPhysXActorBody::buildShapes ( QPhysXWorld * physX)

Definition at line 144 of file qphysxactorbody.cpp.

References actor, QAbstractPhysicsNode::filterGroup, QAbstractPhysicsNode::filterIgnoreGroups, QAbstractPhysXNode::frontendNode, QAbstractPhysicsNode::getCollisionShapesList(), getPhysXLocalTransform(), StaticPhysXObjects::getReference(), QAbstractPhysXNode::material, PHYSX_RELEASE, QAbstractPhysXNode::setFiltersDirty(), 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 ( QPhysXWorld * physX)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 50 of file qphysxactorbody.cpp.

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

+ Here is the call graph for this function:

◆ createActor()

void QPhysXActorBody::createActor ( QPhysXWorld * physX)
virtual

Reimplemented in QPhysXStaticBody.

Definition at line 126 of file qphysxactorbody.cpp.

References actor, QAbstractPhysXNode::frontendNode, StaticPhysXObjects::getReference(), QQuick3DNode::scenePosition, QQuick3DNode::sceneRotation, and QPhysicsUtils::toPhysXTransform().

Referenced by init().

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

◆ debugGeometryCapability()

bool QPhysXActorBody::debugGeometryCapability ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 134 of file qphysxactorbody.cpp.

◆ getGlobalPose()

physx::PxTransform QPhysXActorBody::getGlobalPose ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 139 of file qphysxactorbody.cpp.

References actor.

◆ init()

void QPhysXActorBody::init ( QPhysicsWorld * world,
QPhysXWorld * physX )
overridevirtual

Implements QAbstractPhysXNode.

Definition at line 59 of file qphysxactorbody.cpp.

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

+ Here is the call graph for this function:

◆ markDirtyShapes()

void QPhysXActorBody::markDirtyShapes ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 88 of file qphysxactorbody.cpp.

References actor, QAbstractPhysXNode::frontendNode, QPhysicsUtils::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,
QPhysXWorld * physX )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Reimplemented in QPhysXDynamicBody.

Definition at line 118 of file qphysxactorbody.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 QPhysXDynamicBody, QPhysXStaticBody, and QPhysXTriggerBody.

Definition at line 71 of file qphysxactorbody.cpp.

References QAbstractPhysXNode::frontendNode, and QAbstractPhysXNode::material.

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

+ Here is the caller graph for this function:

◆ updateFilters()

void QPhysXActorBody::updateFilters ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 186 of file qphysxactorbody.cpp.

References QAbstractPhysicsNode::filterGroup, QAbstractPhysicsNode::filterIgnoreGroups, QAbstractPhysXNode::filtersDirty(), QAbstractPhysXNode::frontendNode, QAbstractPhysXNode::setFiltersDirty(), and QAbstractPhysXNode::shapes.

+ Here is the call graph for this function:

Member Data Documentation

◆ actor


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