#include <ufomotionmodel.h>

Public Member Functions | |
| UFOMotionModel (Keyboard *keyboard=NULL, Mouse *mouse=NULL) | |
| Constructor. | |
| void | SetDefaultMappings (Keyboard *keyboard, Mouse *mouse) |
| Sets the input axes to a set of default mappings for mouse and keyboard. | |
| void | SetFlyForwardBackwardAxis (Axis *flyForwardBackwardAxis) |
| Sets the axis that moves the target forwards (for positive values) or backwards (for negative values). | |
| Axis * | GetFlyForwardBackwardAxis () |
| Returns the axis that moves the target forwards (for positive values) or backwards (for negative values). | |
| void | SetFlyLeftRightAxis (Axis *flyLeftRightAxis) |
| Sets the axis that moves the target left (for negative values) or right (for positive values). | |
| Axis * | GetFlyLeftRightAxis () |
| Returns the axis that moves the target left (for negative values) or right (for positive values). | |
| void | SetFlyUpDownAxis (Axis *flyUpDownAxis) |
| Sets the axis that moves the target up (for positive values) or down (for negative values). | |
| Axis * | GetFlyUpDownAxis () |
| Returns the axis that moves the target up (for positive values) or down (for negative values). | |
| void | SetTurnLeftRightAxis (Axis *turnLeftRightAxis) |
| Sets the axis that turns the target left (for negative values) or right (for positive values). | |
| Axis * | GetTurnLeftRightAxis () |
| Returns the axis that turns the target left (for negative values) or right (for positive values). | |
| void | SetMaximumFlySpeed (float maximumFlySpeed) |
| Sets the maximum fly speed (meters per second). | |
| float | GetMaximumFlySpeed () |
| Returns the maximum fly speed (meters per second). | |
| void | SetMaximumTurnSpeed (float maximumTurnSpeed) |
| Sets the maximum turn speed (degrees per second). | |
| float | GetMaximumTurnSpeed () |
| Returns the maximum turn speed (degrees per second). | |
| virtual void | OnMessage (MessageData *data) |
| Message handler callback. | |
Protected Member Functions | |
| virtual | ~UFOMotionModel () |
| Destructor. | |
Constructor.
| keyboard | the keyboard instance, or 0 to avoid creating default input mappings | |
| mouse | the mouse instance, or 0 to avoid creating default input mappings |
| dtCore::UFOMotionModel::~UFOMotionModel | ( | ) | [protected, virtual] |
Destructor.
Sets the input axes to a set of default mappings for mouse and keyboard.
| keyboard | the keyboard instance | |
| mouse | the mouse instance |
| void dtCore::UFOMotionModel::SetFlyForwardBackwardAxis | ( | Axis * | flyForwardBackwardAxis | ) |
Sets the axis that moves the target forwards (for positive values) or backwards (for negative values).
| flyForwardBackwardAxis | the new forward/backward axis |
| Axis * dtCore::UFOMotionModel::GetFlyForwardBackwardAxis | ( | ) |
Returns the axis that moves the target forwards (for positive values) or backwards (for negative values).
| void dtCore::UFOMotionModel::SetFlyLeftRightAxis | ( | Axis * | flyLeftRightAxis | ) |
Sets the axis that moves the target left (for negative values) or right (for positive values).
| flyLeftRightAxis | the new left/right axis |
| Axis * dtCore::UFOMotionModel::GetFlyLeftRightAxis | ( | ) |
Returns the axis that moves the target left (for negative values) or right (for positive values).
| void dtCore::UFOMotionModel::SetFlyUpDownAxis | ( | Axis * | flyUpDownAxis | ) |
Sets the axis that moves the target up (for positive values) or down (for negative values).
| flyUpDownAxis | the new up/down axis |
| Axis * dtCore::UFOMotionModel::GetFlyUpDownAxis | ( | ) |
Returns the axis that moves the target up (for positive values) or down (for negative values).
| void dtCore::UFOMotionModel::SetTurnLeftRightAxis | ( | Axis * | turnLeftRightAxis | ) |
Sets the axis that turns the target left (for negative values) or right (for positive values).
| turnLeftRightAxis | the new turn left/right axis |
| Axis * dtCore::UFOMotionModel::GetTurnLeftRightAxis | ( | ) |
Returns the axis that turns the target left (for negative values) or right (for positive values).
| void dtCore::UFOMotionModel::SetMaximumFlySpeed | ( | float | maximumFlySpeed | ) |
Sets the maximum fly speed (meters per second).
| maximumFlySpeed | the new maximum fly speed |
| float dtCore::UFOMotionModel::GetMaximumFlySpeed | ( | ) |
Returns the maximum fly speed (meters per second).
| void dtCore::UFOMotionModel::SetMaximumTurnSpeed | ( | float | maximumTurnSpeed | ) |
Sets the maximum turn speed (degrees per second).
| maximumTurnSpeed | the new maximum turn speed |
| float dtCore::UFOMotionModel::GetMaximumTurnSpeed | ( | ) |
Returns the maximum turn speed (degrees per second).
| void dtCore::UFOMotionModel::OnMessage | ( | MessageData * | data | ) | [virtual] |