A class for a Rotor object that inherits GameActor.
More...
#include <Rotor.h>
A class for a Rotor object that inherits GameActor.
- Author
- Jamie Slowgrove
Rotor::Rotor |
( |
Ogre::Vector3 |
position, |
|
|
Ogre::Vector3 |
orientation, |
|
|
Ogre::Real |
scale, |
|
|
std::shared_ptr< Ogre::SceneNode > |
helicopterNode, |
|
|
Ogre::String |
rotorType |
|
) |
| |
Constructs the Rotor object.
- Parameters
-
Ogre::Vector3 | The position of the Rotor. |
Ogre::Vector3 | The orientation of the Rotor. |
Ogre::Real | The scale of the Rotor. |
std::shared_ptr<Ogre::SceneNode> | A shared pointer to the Helicopter node. |
Ogre::String | The type of the Rotor (aftRotor or topRotor). |
Destructs the Rotor object.
void Rotor::rotateRotor |
( |
float |
dt | ) |
|
|
private |
Rotates the Rotor.
- Parameters
-
void Rotor::setRotateAxis |
( |
Ogre::Vector3 |
rotationAxis | ) |
|
Setter # Sets the rotation axis of the rotor.
- Parameters
-
Ogre::Vector3 | The rotation axis of the Rotor. E.g. to rotate on the x rotation axis will be (1.0f,0.0f,0.0f).. |
void Rotor::setTargetRotateSpeedPercent |
( |
Ogre::Real |
targetRotateSpeedPercent | ) |
|
Setter # Sets the target percent of the rotation speed of the rotor.
- Parameters
-
Ogre::Real | The new target percentage rotation speed of the rotor. |
void Rotor::updateActor |
( |
float |
dt | ) |
|
|
virtual |
void Rotor::updateRotateSpeed |
( |
| ) |
|
Updates the rotation speed of the rotor.
std::shared_ptr<Ogre::SceneNode> Rotor::helicopterNode |
|
private |
Ogre::Real Rotor::maxRotorSpeed |
|
private |
The max speed that the Rotor will rotate
Ogre::Real Rotor::rotateSpeed |
|
private |
The speed of the Rotor rotation.
Ogre::Vector3 Rotor::rotationAxis |
|
private |
The rotation axis of the Rotor. E.g. to rotate on the x rotation axis will be (1.0f,0.0f,0.0f).
Ogre::String Rotor::rotorType |
|
private |
Ogre::Real Rotor::targetRotateSpeedPercent |
|
private |
The percentage speed of the max speed that the Rotor will target
The documentation for this class was generated from the following files: