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

#include <qphysxcharactercontroller_p.h>

+ Inheritance diagram for QPhysXCharacterController:
+ Collaboration diagram for QPhysXCharacterController:

Public Member Functions

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

Detailed Description

Definition at line 30 of file qphysxcharactercontroller_p.h.

Constructor & Destructor Documentation

◆ QPhysXCharacterController()

QPhysXCharacterController::QPhysXCharacterController ( QCharacterController * frontEnd)

Definition at line 53 of file qphysxcharactercontroller.cpp.

Member Function Documentation

◆ cleanup()

void QPhysXCharacterController::cleanup ( QPhysXWorld * physX)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 58 of file qphysxcharactercontroller.cpp.

References QAbstractPhysXNode::cleanup(), and PHYSX_RELEASE.

+ Here is the call graph for this function:

◆ createMaterial()

void QPhysXCharacterController::createMaterial ( QPhysXWorld * physX)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 182 of file qphysxcharactercontroller.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:

◆ debugGeometryCapability()

bool QPhysXCharacterController::debugGeometryCapability ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 188 of file qphysxcharactercontroller.cpp.

◆ getDebugDrawBodyType()

DebugDrawBodyType QPhysXCharacterController::getDebugDrawBodyType ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 193 of file qphysxcharactercontroller.cpp.

References Character.

◆ init()

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

Implements QAbstractPhysXNode.

Definition at line 66 of file qphysxcharactercontroller.cpp.

References createMaterial(), 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 121 of file qphysxcharactercontroller.cpp.

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

+ Here is the call graph for this function:

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