Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10429 in orxonox.OLD


Ignore:
Timestamp:
Jan 28, 2007, 1:37:55 AM (17 years ago)
Author:
stefalie
Message:

blink: more clean up + positioning works now

Location:
branches/blink/src/world_entities/effects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/blink/src/world_entities/effects/blink.cc

    r10427 r10429  
    6767  this->bBoard->setVisibiliy(true);
    6868  this->bBoard->setTexture("maps/star_alpha.png");
    69   this->bBoard->setAbsCoor(this->position.x, this->position.y, this->position.z);
     69  this->bBoard->setAbsCoor(0, 0, 0);
    7070
    7171
    7272  /// Standard values
    73   this->setAbsCoor(0, 0, 0); 
    74   this->position = Vector(0, 0, 0); ///remove
     73  this->setAbsCoor(0, 0, 0);
     74  // red if not defined in xml
    7575  this->color = Color(1, 0, 0);
     76  // 10x10 pxl if not defined in xml
    7677  this->size = 10;
    7778  this->omega = 10;
  • branches/blink/src/world_entities/effects/blink.h

    r10427 r10429  
    2424    void loadParams(const TiXmlElement* root);
    2525
    26     void setPosition(float x, float y, float z) { this->position = Vector(x, y, z); }
     26    void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); }
    2727    void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); }
    2828    void setOmega(float w) { this->omega = w; }
     
    3434  private:
    3535    Billboard*        bBoard;
    36     Vector            position;
     36    //Vector            position;
    3737    Color             color;
    3838    float             angle;
Note: See TracChangeset for help on using the changeset viewer.