![]() |
Qt 6.x
The Qt SDK
|
#include <qphysicscommands_p.h>
Public Member Functions | |
QPhysicsCommandSetMassAndInertiaMatrix (float inMass, const QMatrix3x3 &inInertia) | |
void | execute (const QDynamicRigidBody &rigidBody, physx::PxRigidBody &body) override |
![]() | |
virtual | ~QPhysicsCommand ()=default |
virtual void | execute (const QDynamicRigidBody &rigidBody, physx::PxRigidBody &body)=0 |
Definition at line 142 of file qphysicscommands_p.h.
QPhysicsCommandSetMassAndInertiaMatrix::QPhysicsCommandSetMassAndInertiaMatrix | ( | float | inMass, |
const QMatrix3x3 & | inInertia | ||
) |
Definition at line 162 of file qphysicscommands.cpp.
|
overridevirtual |
Implements QPhysicsCommand.
Definition at line 168 of file qphysicscommands.cpp.
References QDynamicRigidBody::centerOfMassPosition, QAbstractPhysicsNode::hasStaticShapes(), qWarning, and QPhysicsUtils::toPhysXType().