- Timestamp:
- May 19, 2016, 5:34:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/plehmannFS16/src/orxonox/controllers/scriptTasks/MoveToTask.cc
r11187 r11190 49 49 this->entity_ = this->player_->getControllableEntity(); 50 50 this->destination_ = destination; 51 this->velocity_ = velocity; 51 52 this->entity->setVelocity( Vector3(0,0,0) ) 52 53 } … … 55 56 { 56 57 58 float dl = this->velocity_ * dt; 57 59 60 58 61 /* Set the position to the correct place in the trajectory */ 59 62 this->entity_->setPosition( (1-dl)*startpos + dl * this->currentEvent.v1);
Note: See TracChangeset
for help on using the changeset viewer.