Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2016, 5:34:38 PM (8 years ago)
Author:
plehmann
Message:

modified newScriptController to prevent memory leacks caused by tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/plehmannFS16/src/orxonox/controllers/scriptTasks/MoveToTask.cc

    r11187 r11190  
    4949        this->entity_ = this->player_->getControllableEntity();
    5050        this->destination_ = destination;
     51        this->velocity_ = velocity;
    5152        this->entity->setVelocity( Vector3(0,0,0) )
    5253    }
     
    5556    {
    5657
     58        float dl = this->velocity_ * dt;
    5759
     60       
    5861        /* Set the position to the correct place in the trajectory */
    5962        this->entity_->setPosition( (1-dl)*startpos + dl * this->currentEvent.v1);
Note: See TracChangeset for help on using the changeset viewer.