QCapsuleCollider Class

(Qt3D::QCapsuleCollider)

Represents a capsule used for collision detection More...

Header: #include <QCapsuleCollider>
Since: Qt 5.5
Instantiated By: CapsuleCollider
Inherits: QAbstractCollider

Public Types

enum Direction { XAxis, YAxis, ZAxis }

Properties

Public Functions

QCapsuleCollider(QNode * parent = 0)
~QCapsuleCollider()
Direction axisDirection() const
QVector3D center() const
float length() const
float radius() const

Public Slots

void setAxisDirection(Qt3D::QCapsuleCollider::Direction axisDirection)
void setCenter(const QVector3D & center)
void setLength(float length)
void setRadius(float radius)

Signals

void axisDirectionChanged(Qt3D::QCapsuleCollider::Direction axisDirection)
void centerChanged(QVector3D center)
void lengthChanged(float length)
void radiusChanged(float radius)

Additional Inherited Members

Detailed Description

Represents a capsule used for collision detection

Member Type Documentation

enum QCapsuleCollider::Direction

Property Documentation

axisDirection : Direction

Access functions:

Direction axisDirection() const
void setAxisDirection(Qt3D::QCapsuleCollider::Direction axisDirection)

Notifier signal:

void axisDirectionChanged(Qt3D::QCapsuleCollider::Direction axisDirection)

center : QVector3D

Access functions:

QVector3D center() const
void setCenter(const QVector3D & center)

Notifier signal:

void centerChanged(QVector3D center)

length : float

Access functions:

float length() const
void setLength(float length)

Notifier signal:

void lengthChanged(float length)

radius : float

Access functions:

float radius() const
void setRadius(float radius)

Notifier signal:

void radiusChanged(float radius)

Member Function Documentation

QCapsuleCollider::QCapsuleCollider(QNode * parent = 0)

Constructs a new QCapsuleCollider instance with parent parent.

QCapsuleCollider::~QCapsuleCollider()

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.