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

Public Member Functions

 QPhysXCharacterController (QCharacterController *frontEnd)
 
void cleanup (PhysXWorld *physX) override
 
void init (QPhysicsWorld *world, PhysXWorld *physX) override
 
void sync (float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
 
void createMaterial (PhysXWorld *physX) override
 
- 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)
 

Additional Inherited Members

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

Detailed Description

Definition at line 576 of file qphysicsworld.cpp.

Constructor & Destructor Documentation

◆ QPhysXCharacterController()

QPhysXCharacterController::QPhysXCharacterController ( QCharacterController frontEnd)
inline

Definition at line 579 of file qphysicsworld.cpp.

Member Function Documentation

◆ cleanup()

void QPhysXCharacterController::cleanup ( PhysXWorld physX)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 737 of file qphysicsworld.cpp.

References QAbstractPhysXNode::cleanup(), and PHYSX_RELEASE.

+ Here is the call graph for this function:

◆ createMaterial()

void QPhysXCharacterController::createMaterial ( PhysXWorld physX)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 703 of file qphysicsworld.cpp.

References QAbstractPhysXNode::createMaterialFromQtMaterial(), and QAbstractPhysXNode::frontendNode.

Referenced by init().

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

◆ init()

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

Implements QAbstractPhysXNode.

Definition at line 745 of file qphysicsworld.cpp.

References createMaterial(), desc, QAbstractPhysXNode::frontendNode, QAbstractPhysXNode::material, pos, Q_ASSERT, qWarning, radiusScale, QAbstractPhysXNode::shapes, world, and QVector3D::y().

+ Here is the call graph for this function:

◆ sync()

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

Implements QAbstractPhysXNode.

Definition at line 1060 of file qphysicsworld.cpp.

References QAbstractPhysXNode::frontendNode, QQuick3DNode::mapPositionFromScene(), position(), qFuzzyCompare(), qWarning, radiusScale, QQuick3DNode::setPosition(), QAbstractPhysXNode::shapes, QPhysicsUtils::toPhysXType(), QPhysicsUtils::toQtType(), QVector3D::x(), QVector3D::y(), and QVector3D::z().

+ Here is the call graph for this function:

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