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

#include <qphysxdynamicbody_p.h>

Inheritance diagram for QPhysXDynamicBody:
Collaboration diagram for QPhysXDynamicBody:

Public Member Functions

 QPhysXDynamicBody (QDynamicRigidBody *frontEnd)
DebugDrawBodyType getDebugDrawBodyType () override
void sync (float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
void rebuildDirtyShapes (QPhysicsWorld *world, QPhysXWorld *physX) override
void updateDefaultDensity (float density) override
Public Member Functions inherited from QPhysXRigidBody
 QPhysXRigidBody (QAbstractPhysicsBody *frontEnd)
void createMaterial (QPhysXWorld *physX) override
Public Member Functions inherited from QPhysXActorBody
 QPhysXActorBody (QAbstractPhysicsNode *frontEnd)
void cleanup (QPhysXWorld *physX) override
void init (QPhysicsWorld *world, QPhysXWorld *physX) override
void markDirtyShapes () 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)
void createMaterialFromQtMaterial (QPhysXWorld *physX, QPhysicsMaterial *qtMaterial)
virtual bool useTriggerFlag ()
bool shapesDirty () const
void setShapesDirty (bool dirty)
bool filtersDirty () const
void setFiltersDirty (bool dirty)

Additional Inherited Members

Public Attributes inherited from QPhysXActorBody
physx::PxRigidActor * actor = nullptr
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 26 of file qphysxdynamicbody_p.h.

Constructor & Destructor Documentation

◆ QPhysXDynamicBody()

QPhysXDynamicBody::QPhysXDynamicBody ( QDynamicRigidBody * frontEnd)

Definition at line 99 of file qphysxdynamicbody.cpp.

Member Function Documentation

◆ getDebugDrawBodyType()

DebugDrawBodyType QPhysXDynamicBody::getDebugDrawBodyType ( )
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 101 of file qphysxdynamicbody.cpp.

References DynamicAwake, and DynamicSleeping.

◆ rebuildDirtyShapes()

void QPhysXDynamicBody::rebuildDirtyShapes ( QPhysicsWorld * world,
QPhysXWorld * physX )
overridevirtual

Reimplemented from QPhysXActorBody.

Definition at line 139 of file qphysxdynamicbody.cpp.

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

Here is the call graph for this function:

◆ sync()

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

Reimplemented from QPhysXActorBody.

Definition at line 108 of file qphysxdynamicbody.cpp.

References QPhysXActorBody::actor.

◆ updateDefaultDensity()

void QPhysXDynamicBody::updateDefaultDensity ( float density)
overridevirtual

Reimplemented from QAbstractPhysXNode.

Definition at line 200 of file qphysxdynamicbody.cpp.


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