OpenWalnut
1.4.0
|
Provides a time-dependent translation. More...
Public Member Functions | |
Translator (double time, double startTime, WVector3d direction, double speed) | |
Translates the scene using the given direction. |
Provides a time-dependent translation.
Definition at line 306 of file WGEAnimationManipulator.cpp.
Translator::Translator | ( | double | time, |
double | startTime, | ||
WVector3d | direction, | ||
double | speed | ||
) | [inline] |
Translates the scene using the given direction.
The speed is given as units per second.
time | current time |
startTime | the time when to start the transformation |
direction | the direction. Length is important here. |
speed | speed in direction-vector per second |
Definition at line 317 of file WGEAnimationManipulator.cpp.
References Transformation::m_duration, and Transformation::m_finishTime.