#include <command.h>
Inheritance diagram for CommandMove:


Public Member Functions | |
| CommandMove (double _duration, const Vec3d &_velocity) | |
| void | process (ExecutionEnvironment &, double t, double dt) |
Private Attributes | |
| Vec3d | velocity |
|
||||||||||||
|
Definition at line 405 of file command.cpp. 00405 : 00406 TimedCommand(_duration), 00407 velocity(_velocity) 00408 { 00409 }
|
|
||||||||||||||||
|
Implements Command. Definition at line 411 of file command.cpp. References velocity. 00412 {
00413 env.getSimulation()->setObserverPosition(env.getSimulation()->getObserver().getPosition() + (velocity * dt));
00414 }
|
|
|
Definition at line 342 of file command.h. Referenced by process(). |
1.4.1