31 Q_PROPERTY(
bool enableDebugDraw READ enableDebugDraw WRITE setEnableDebugDraw NOTIFY
32 enableDebugDrawChanged)
33 QML_NAMED_ELEMENT(CollisionShape)
34 QML_UNCREATABLE(
"abstract interface")
36 explicit QAbstractCollisionShape(QQuick3DNode *parent =
nullptr);
37 virtual ~QAbstractCollisionShape();
39 virtual physx::PxGeometry *getPhysXGeometry() = 0;
40 bool enableDebugDraw()
const;
42 virtual bool isStaticShape()
const = 0;
45 void setEnableDebugDraw(
bool enableDebugDraw);
48 void enableDebugDrawChanged(
bool enableDebugDraw);
49 void needsRebuild(QObject *);
52 bool m_scaleDirty =
true;
53 QVector3D m_prevScale;
56 void handleScaleChange();
59 bool m_enableDebugDraw =
false;