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
qphysxdynamicbody.cpp File Reference

(476efc4c72283a3a844a11235e36cb124663a74c)

#include "qphysxdynamicbody_p.h"
#include "PxRigidDynamic.h"
#include "qphysicscommands_p.h"
#include "qphysicsutils_p.h"
#include "qphysicsworld_p.h"
#include "qabstractphysicsbody_p.h"
#include "qdynamicrigidbody_p.h"
+ Include dependency graph for qphysxdynamicbody.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE void processCommandQueue (QQueue< QPhysicsCommand * > &commandQueue, const QDynamicRigidBody &rigidBody, physx::PxRigidBody &body)
 
static QMatrix4x4 calculateKinematicNodeTransform (QQuick3DNode *node, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache)
 
static physx::PxRigidDynamicLockFlags getLockFlags (QDynamicRigidBody *body)
 
static physx::PxTransform getPhysXWorldTransform (const QMatrix4x4 transform)
 

Function Documentation

◆ calculateKinematicNodeTransform()

static QMatrix4x4 calculateKinematicNodeTransform ( QQuick3DNode * node,
QHash< QQuick3DNode *, QMatrix4x4 > & transformCache )
static

Definition at line 27 of file qphysxdynamicbody.cpp.

References calculateKinematicNodeTransform(), QSSGRenderNode::calculateTransformMatrix(), QQuick3DNode::parentNode(), QQuick3DNode::pivot, QQuick3DNode::position, qWarning, QQuick3DNode::rotation, QQuick3DNode::scale, and sceneTransform().

Referenced by calculateKinematicNodeTransform(), and QPhysXDynamicBody::sync().

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

◆ getLockFlags()

static physx::PxRigidDynamicLockFlags getLockFlags ( QDynamicRigidBody * body)
static

Definition at line 61 of file qphysxdynamicbody.cpp.

References QDynamicRigidBody::angularAxisLock, QDynamicRigidBody::linearAxisLock, QDynamicRigidBody::LockX, QDynamicRigidBody::LockY, and QDynamicRigidBody::LockZ.

Referenced by QPhysXDynamicBody::sync().

+ Here is the caller graph for this function:

◆ getPhysXWorldTransform()

static physx::PxTransform getPhysXWorldTransform ( const QMatrix4x4 transform)
static

Definition at line 86 of file qphysxdynamicbody.cpp.

References QSSGUtils::mat44::getPosition(), QSSGUtils::mat44::getUpper3x3(), QSSGUtils::mat44::normalize(), and QPhysicsUtils::toPhysXType().

Referenced by QPhysXDynamicBody::sync().

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

◆ processCommandQueue()

static QT_BEGIN_NAMESPACE void processCommandQueue ( QQueue< QPhysicsCommand * > & commandQueue,
const QDynamicRigidBody & rigidBody,
physx::PxRigidBody & body )
static

Definition at line 16 of file qphysxdynamicbody.cpp.

Referenced by QPhysXDynamicBody::sync().

+ Here is the caller graph for this function: