18#include <QtQuick3DPhysics/qtquick3dphysicsglobal.h>
19#include <QtQuick3DPhysics/private/qabstractcollisionshape_p.h>
20#include <QtCore/QObject>
21#include <QtGui/QVector3D>
22#include <QtQml/QQmlEngine>
30class Q_QUICK3DPHYSICS_EXPORT
QPlaneShape :
public QAbstractCollisionShape
34 QML_NAMED_ELEMENT(PlaneShape)
39 physx::PxGeometry *getPhysXGeometry() override;
40 bool isStaticShape()
const override {
return true; }
43 void updatePhysXGeometry();
45 physx::PxPlaneGeometry *m_planeGeometry =
nullptr;
QAbstractPhysicsNode * frontendNode
bool filtersDirty() const
virtual void cleanup(QPhysXWorld *)
physx::PxMaterial * material
QAbstractPhysXNode(QAbstractPhysicsNode *node)
void setShapesDirty(bool dirty)
void setFiltersDirty(bool dirty)
virtual void createMaterial(QPhysXWorld *physX)
void simulationEnabledChanged()
Q_REVISION(6, 7) bool simulationEnabled() const
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
QPhysicsMaterial * physicsMaterial() const
void markDirtyShapes() override
void buildShapes(QPhysXWorld *physX)
void rebuildDirtyShapes(QPhysicsWorld *world, QPhysXWorld *physX) override
void init(QPhysicsWorld *world, QPhysXWorld *physX) override
bool debugGeometryCapability() override
QPhysXActorBody(QAbstractPhysicsNode *frontEnd)
void cleanup(QPhysXWorld *physX) override
physx::PxRigidActor * actor
virtual void createActor(QPhysXWorld *physX)
void sync(float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache) override
void updateFilters() override
physx::PxTransform getGlobalPose() override
SimulationEventCallback * callback
void createScene(float typicalLength, float typicalSpeed, const QVector3D &gravity, bool enableCCD, QPhysicsWorld *physicsWorld, unsigned int numThreads)
physx::PxControllerManager * controllerManager
The QVector3D class represents a vector or vertex in 3D space.
const QQuaternion kMinus90YawRotation
static QT_BEGIN_NAMESPACE physx::PxTransform getPhysXLocalTransform(const QQuick3DNode *node)
#define QT_BEGIN_NAMESPACE
static StaticPhysXObjects & getReference()