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
QPhysicsUtils Namespace Reference

Functions

Q_ALWAYS_INLINE physx::PxVec3 toPhysXType (const QVector3D &qvec)
 
Q_ALWAYS_INLINE physx::PxQuat toPhysXType (const QQuaternion &qquat)
 
Q_ALWAYS_INLINE physx::PxMat33 toPhysXType (const QMatrix3x3 &m)
 
Q_ALWAYS_INLINE QVector3D toQtType (const physx::PxVec3 &vec)
 
Q_ALWAYS_INLINE QQuaternion toQtType (const physx::PxQuat &quat)
 
Q_ALWAYS_INLINE physx::PxTransform toPhysXTransform (const QVector3D &position, const QQuaternion &rotation)
 
Q_ALWAYS_INLINE bool fuzzyEquals (const physx::PxTransform &a, const physx::PxTransform &b)
 

Variables

const QQuaternion kMinus90YawRotation = QQuaternion::fromEulerAngles(0, -90, 0)
 

Function Documentation

◆ fuzzyEquals()

Q_ALWAYS_INLINE bool QPhysicsUtils::fuzzyEquals ( const physx::PxTransform & a,
const physx::PxTransform & b )

Definition at line 63 of file qphysicsutils_p.h.

References qFuzzyCompare().

Referenced by QPhysXActorBody::markDirtyShapes(), and QPhysXStaticBody::sync().

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

◆ toPhysXTransform()

Q_ALWAYS_INLINE physx::PxTransform QPhysicsUtils::toPhysXTransform ( const QVector3D & position,
const QQuaternion & rotation )

Definition at line 56 of file qphysicsutils_p.h.

References position(), and toPhysXType().

Referenced by QPhysXActorBody::createActor(), QPhysXStaticBody::createActor(), QPhysXStaticBody::sync(), and QPhysXTriggerBody::sync().

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

◆ toPhysXType() [1/3]

Q_ALWAYS_INLINE physx::PxMat33 QPhysicsUtils::toPhysXType ( const QMatrix3x3 & m)

Definition at line 41 of file qphysicsutils_p.h.

◆ toPhysXType() [2/3]

Q_ALWAYS_INLINE physx::PxQuat QPhysicsUtils::toPhysXType ( const QQuaternion & qquat)

Definition at line 36 of file qphysicsutils_p.h.

◆ toPhysXType() [3/3]

◆ toQtType() [1/2]

Q_ALWAYS_INLINE QQuaternion QPhysicsUtils::toQtType ( const physx::PxQuat & quat)

Definition at line 51 of file qphysicsutils_p.h.

◆ toQtType() [2/2]

Q_ALWAYS_INLINE QVector3D QPhysicsUtils::toQtType ( const physx::PxVec3 & vec)

Definition at line 46 of file qphysicsutils_p.h.

Referenced by QDebugDrawHelper::generateConvexMeshGeometry(), QDebugDrawHelper::generateTriangleMeshGeometry(), SimulationEventCallback::onContact(), ControllerCallback::onShapeHit(), and QPhysXCharacterController::sync().

+ Here is the caller graph for this function:

Variable Documentation

◆ kMinus90YawRotation

const QQuaternion QPhysicsUtils::kMinus90YawRotation = QQuaternion::fromEulerAngles(0, -90, 0)
inline

Definition at line 70 of file qphysicsutils_p.h.

Referenced by getPhysXLocalTransform().