Public Member Functions | |
virtual void | setDirection (const double &fHAngle, const double &fVAngle) |
virtual void | setDirection (const Vector3D &vecDirection) |
const Vector3D & | getDirection () const |
void | setIntensity (const double fIntensity) |
const double & | getIntensity () |
void CSWEngine::setDirection | ( | const double & | fHAngle, | |
const double & | fVAngle | |||
) | [virtual] |
Sets the direction relative to local initial set coordinate system. If a direction is given that the engine can not adjust, the maximal direction nearest to the given direction will be set. The maximal excursion of the new direction relative to it initial direction is 45 degree. The angular velocity for adjusting is 22.5 degree/second.
fHAngle | The new horizontal angle, positiv means to the right. (in degree) | |
fVAngle | The new vertical angle, positiv means to the up. (in degree) |
void CSWEngine::setDirection | ( | const Vector3D & | vecDirection | ) | [virtual] |
Sets the direction relative to local initial set coordinate system. If a direction is given that the engine can not adjust, the maximal direction nearest to the given direction will be set. The maximal excursion of the new direction relative to it initial direction is 45 degree. The angular velocity for adjusting is 22.5 degree/second.
vecDirection | The new direction relative to its parent. |
const Vector3D & CSWEngine::getDirection | ( | ) | const |
Returns the normalized direction in the world coordinate system. This is the "forward" direction for positive intensity values.
void CSWEngine::setIntensity | ( | const double | fIntensity | ) |
Sets the intensity of the engine relative to its parent. The valid range is [-1, 1], where positive means toward and negative backward direction. Non-valid values are clipped against the valid range.
fIntensity | The new intensity in range [-1, 1]. |
const double & CSWEngine::getIntensity | ( | ) |
Returns the current set normalized intensity in range [-1, 1].