summaryrefslogtreecommitdiffstats
path: root/src/collision/qspherecollider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/collision/qspherecollider.h')
-rw-r--r--src/collision/qspherecollider.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/collision/qspherecollider.h b/src/collision/qspherecollider.h
index af147fc13..43a4bfbd7 100644
--- a/src/collision/qspherecollider.h
+++ b/src/collision/qspherecollider.h
@@ -39,6 +39,7 @@
#include <Qt3DCore/qcomponent.h>
#include <Qt3DCollision/qt3dcollision_global.h>
+#include <QtGui/qvector3d.h>
QT_BEGIN_NAMESPACE
@@ -49,11 +50,24 @@ class QSphereColliderPrivate;
class QT3DCOLLISIONSHARED_EXPORT QSphereCollider : public QComponent
{
Q_OBJECT
+ Q_PROPERTY(QVector3D center READ center WRITE setCenter NOTIFY centerChanged)
+ Q_PROPERTY(float radius READ radius WRITE setRadius NOTIFY radiusChanged)
public:
explicit QSphereCollider(QNode *parent = 0);
~QSphereCollider();
+ QVector3D center() const;
+ float radius() const;
+
+public Q_SLOTS:
+ void setCenter(const QVector3D &center);
+ void setRadius(float radius);
+
+Q_SIGNALS:
+ void centerChanged(QVector3D center);
+ void radiusChanged(float radius);
+
protected:
QSphereCollider(QSphereColliderPrivate &dd, QNode *parent = 0);