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
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 50 of file qphysxactorbody.cpp.

References QAbstractPhysXNode::QAbstractPhysXNode().

Here is the call graph for this function:

Member Function Documentation

◆ buildShapes()

void QPhysXActorBody::buildShapes ( QPhysXWorld * physX)

Definition at line 146 of file qphysxactorbody.cpp.

References actor, and QAbstractPhysXNode::setFiltersDirty().

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 52 of file qphysxactorbody.cpp.

References actor, QAbstractPhysXNode::cleanup(), and QPhysXWorld::scene.

Here is the call graph for this function:

◆ createActor()

void QPhysXActorBody::createActor ( QPhysXWorld * physX)
virtual

Reimplemented in QPhysXStaticBody.

Definition at line 128 of file qphysxactorbody.cpp.

References actor, and StaticPhysXObjects::getReference().

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 136 of file qphysxactorbody.cpp.

◆ getGlobalPose()

physx::PxTransform QPhysXActorBody::getGlobalPose ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 141 of file qphysxactorbody.cpp.

References actor.

◆ init()

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

Implements QAbstractPhysXNode.

Definition at line 61 of file qphysxactorbody.cpp.

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

Here is the call graph for this function:

◆ markDirtyShapes()

void QPhysXActorBody::markDirtyShapes ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 90 of file qphysxactorbody.cpp.

References actor, QAbstractPhysXNode::frontendNode, QAbstractPhysXNode::setShapesDirty(), 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 120 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 73 of file qphysxactorbody.cpp.

References QAbstractPhysXNode::material.

◆ updateFilters()

void QPhysXActorBody::updateFilters ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 188 of file qphysxactorbody.cpp.

References QAbstractPhysXNode::filtersDirty(), and QAbstractPhysXNode::setFiltersDirty().

Here is the call graph for this function:

Member Data Documentation

◆ actor


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