|
float | getMinFov () const |
| Returns minFov. More...
|
|
void | setMinFov (float value) |
| Sets minFov. More...
|
|
float | getXPullFactor () const |
| Returns xPullFactor. More...
|
|
void | setXPullFactor (float value) |
| Sets xPullFactor. More...
|
|
float | getYPullFactor () const |
| Returns yPullFactor. More...
|
|
void | setYPullFactor (float value) |
| Sets yPullFactor. More...
|
|
float | getTowedXPullFactor () const |
| Returns towedXPullFactor. More...
|
|
void | setTowedXPullFactor (float value) |
| Sets towedXPullFactor. More...
|
|
float | getTowedYPullFactor () const |
| Returns towedYPullFactor. More...
|
|
void | setTowedYPullFactor (float value) |
| Sets towedYPullFactor. More...
|
|
float | getLookaheadScale () const |
| Returns lookaheadScale. More...
|
|
void | setLookaheadScale (float value) |
| Sets lookaheadScale. More...
|
|
float | getFovPullFactor () const |
| Returns fovPullFactor. More...
|
|
void | setFovPullFactor (float value) |
| Sets fovPullFactor. More...
|
|
float | getXFovBorder () const |
| Returns xFovBorder. More...
|
|
void | setXFovBorder (float value) |
| Sets xFovBorder. More...
|
|
float | getYFovBorder () const |
| Returns yFovBorder. More...
|
|
void | setYFovBorder (float value) |
| Sets yFovBorder. More...
|
|
virtual void | init () override |
| Initializes the parent actor Camera with parameters for the current scene. More...
|
|
virtual void | update () override |
| Updates the parent actor Camera's properties to follow the constraints from the scene. More...
|
|
| Logic (QObject *parent=nullptr) |
| Constructs a Logic. More...
|
|
Actor * | getActor () const |
| Returns actor. More...
|
|
bool | isActive () const |
| Returns active. More...
|
|
void | setActive (bool value) |
| Sets active. More...
|
|
| QObject (QObject *parent) |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
virtual const QMetaObject * | metaObject () const |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QString &name, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QRegExp ®Exp, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QRegularExpression &re, QFlags< Qt::FindChildOption > options) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
|
bool | disconnect (const QObject *receiver, const char *method) const |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | destroyed (QObject *obj) |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const |
|
bool | inherits (const char *className) const |
|
void | deleteLater () |
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
int | receivers (const char *signal) const |
|
bool | isSignalConnected (const QMetaMethod &signal) const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | connectNotify (const QMetaMethod &signal) |
|
virtual void | disconnectNotify (const QMetaMethod &signal) |
|
Logic to make the camera follow the bounding box of all Actor::PlayerActors.
The camera's field of view (fov) adjusts according to the size of the bounding box of all Actor::PlayerActors that it must encapsulate. Additionally, an extrapolation of the Camera's future position is used to lead it in the direction that the tracked Actors are moving toward.
When the Camera's targets are at rest, it will center itself on the center of their bounding box.
- Note
- This logic's parent Actor must be a Camera.