Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2015, 11:26:38 AM (9 years ago)
Author:
maxima
Message:

changed the presentation level and script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS15/src/orxonox/controllers/ScriptController.cc

    r10489 r10505  
    245245              switch ((int) currentEvent.d) {
    246246                case 3:
    247                   a = new Vector3(this->currentEvent.v1.x + 3000*cos(2*M_PI*dl),
    248                                   this->currentEvent.v1.y + 3000*sin(2*M_PI*dl),
     247                  a = new Vector3(this->currentEvent.v1.x + this->currentEvent.e *cos(2*M_PI*dl),
     248                                  this->currentEvent.v1.y + this->currentEvent.e*sin(2*M_PI*dl),
    249249                                  this->currentEvent.v1.z);
    250250                break;
    251251                case 2:
    252                   a = new Vector3(this->currentEvent.v1.x + 3000*cos(2*M_PI*dl),
     252                  a = new Vector3(this->currentEvent.v1.x + this->currentEvent.e*sin(2*M_PI*dl),
    253253                                  this->currentEvent.v1.y,
    254                                   this->currentEvent.v1.z + 3000*cos(2*M_PI*dl));
     254                                  this->currentEvent.v1.z + this->currentEvent.e*cos(2*M_PI*dl));
    255255                break;
    256256                case 1:
    257257                  a = new Vector3(this->currentEvent.v1.x,
    258                                   this->currentEvent.v1.y + 3000*sin(2*M_PI*dl),
    259                                   this->currentEvent.v1.z + 3000*cos(2*M_PI*dl));
     258                                  this->currentEvent.v1.y + this->currentEvent.e*sin(2*M_PI*dl),
     259                                  this->currentEvent.v1.z + this->currentEvent.e*cos(2*M_PI*dl));
    260260                break;
    261261              }
Note: See TracChangeset for help on using the changeset viewer.