![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
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) |
Public Attributes | |
QVector< physx::PxShape * > | shapes |
physx::PxMaterial * | material = nullptr |
QAbstractPhysicsNode * | frontendNode = nullptr |
bool | isRemoved = false |
Static Public Attributes | |
static physx::PxMaterial * | defaultMaterial = nullptr |
Definition at line 522 of file qphysicsworld.cpp.
|
inline |
Definition at line 525 of file qphysicsworld.cpp.
|
inlinevirtual |
Definition at line 529 of file qphysicsworld.cpp.
|
inlinevirtual |
Reimplemented in QPhysXCharacterController, and QPhysXActorBody.
Definition at line 541 of file qphysicsworld.cpp.
References defaultMaterial, material, PHYSX_RELEASE, and shapes.
Referenced by QPhysXCharacterController::cleanup(), QPhysXActorBody::cleanup(), and cleanupIfRemoved().
bool QAbstractPhysXNode::cleanupIfRemoved | ( | PhysXWorld * | physX | ) |
Definition at line 566 of file qphysicsworld.cpp.
References cleanup(), and isRemoved.
|
virtual |
Reimplemented in QPhysXCharacterController, and QPhysXRigidBody.
Definition at line 698 of file qphysicsworld.cpp.
References createMaterialFromQtMaterial().
Referenced by QPhysXActorBody::init().
void QAbstractPhysXNode::createMaterialFromQtMaterial | ( | PhysXWorld * | physX, |
QPhysicsMaterial * | qtMaterial | ||
) |
Definition at line 681 of file qphysicsworld.cpp.
References QPhysicsMaterial::defaultDynamicFriction, defaultMaterial, QPhysicsMaterial::defaultRestitution, QPhysicsMaterial::defaultStaticFriction, QPhysicsMaterial::dynamicFriction, material, StaticPhysXObjects::physics, QPhysicsMaterial::restitution, s_physx, and QPhysicsMaterial::staticFriction.
Referenced by createMaterial(), QPhysXCharacterController::createMaterial(), and QPhysXRigidBody::createMaterial().
|
inlinevirtual |
Reimplemented in QPhysXActorBody.
Definition at line 548 of file qphysicsworld.cpp.
|
inlinevirtual |
Reimplemented in QPhysXStaticBody, QPhysXDynamicBody, and QPhysXTriggerBody.
Definition at line 552 of file qphysicsworld.cpp.
References Unknown.
|
inlinevirtual |
Reimplemented in QPhysXActorBody.
Definition at line 549 of file qphysicsworld.cpp.
|
pure virtual |
Implemented in QPhysXCharacterController, and QPhysXActorBody.
|
inlinevirtual |
Reimplemented in QPhysXActorBody.
Definition at line 537 of file qphysicsworld.cpp.
|
inlinevirtual |
Reimplemented in QPhysXActorBody, and QPhysXDynamicBody.
Definition at line 538 of file qphysicsworld.cpp.
|
inline |
Definition at line 555 of file qphysicsworld.cpp.
References frontendNode.
Referenced by QPhysXActorBody::init(), QPhysXActorBody::markDirtyShapes(), QPhysXActorBody::rebuildDirtyShapes(), and QPhysXDynamicBody::rebuildDirtyShapes().
|
inline |
Definition at line 554 of file qphysicsworld.cpp.
References frontendNode.
Referenced by QPhysXActorBody::markDirtyShapes(), QPhysXActorBody::rebuildDirtyShapes(), and QPhysXDynamicBody::rebuildDirtyShapes().
|
pure virtual |
Implemented in QPhysXCharacterController, QPhysXActorBody, QPhysXStaticBody, QPhysXDynamicBody, and QPhysXTriggerBody.
|
inlinevirtual |
Reimplemented in QPhysXDynamicBody.
Definition at line 534 of file qphysicsworld.cpp.
|
inlinevirtual |
Reimplemented in QPhysXTriggerBody.
Definition at line 551 of file qphysicsworld.cpp.
Referenced by QPhysXActorBody::buildShapes().
|
static |
Definition at line 561 of file qphysicsworld.cpp.
Referenced by cleanup(), and createMaterialFromQtMaterial().
QAbstractPhysicsNode* QAbstractPhysXNode::frontendNode = nullptr |
Definition at line 559 of file qphysicsworld.cpp.
Referenced by QPhysXActorBody::buildShapes(), QPhysXActorBody::createActor(), QPhysXStaticBody::createActor(), QPhysXCharacterController::createMaterial(), QPhysXRigidBody::createMaterial(), QPhysXCharacterController::init(), QPhysXActorBody::init(), QPhysXActorBody::markDirtyShapes(), QPhysXDynamicBody::rebuildDirtyShapes(), setShapesDirty(), shapesDirty(), QPhysXCharacterController::sync(), QPhysXActorBody::sync(), QPhysXStaticBody::sync(), QPhysXDynamicBody::sync(), QPhysXTriggerBody::sync(), and QPhysXDynamicBody::updateDefaultDensity().
bool QAbstractPhysXNode::isRemoved = false |
Definition at line 560 of file qphysicsworld.cpp.
Referenced by cleanupIfRemoved(), and QPhysicsWorld::deregisterNode().
physx::PxMaterial* QAbstractPhysXNode::material = nullptr |
Definition at line 558 of file qphysicsworld.cpp.
Referenced by QPhysXActorBody::buildShapes(), cleanup(), createMaterialFromQtMaterial(), QPhysXCharacterController::init(), and QPhysXActorBody::sync().
QVector<physx::PxShape *> QAbstractPhysXNode::shapes |
Definition at line 557 of file qphysicsworld.cpp.
Referenced by QPhysXActorBody::buildShapes(), cleanup(), QPhysXCharacterController::init(), QPhysXActorBody::markDirtyShapes(), and QPhysXCharacterController::sync().