Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9083


Ignore:
Timestamp:
Apr 11, 2012, 6:35:15 PM (13 years ago)
Author:
jo
Message:

Camera works.

Location:
code/branches/pCuts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pCuts/data/levels/tetris.oxw

    r9082 r9083  
    1212?>
    1313
     14<Template name=tetrisstonecameras defaults=0>
     15  <TetrisStone>
     16    <camerapositions>
     17      <CameraPosition position="55,75,200" absolute=true />
     18      <CameraPosition position="0,50,160" drag=true mouselook=true />
     19      <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true />
     20    </camerapositions>
     21  </TetrisStone>
     22</Template>
     23
     24<Template name=tetrisstone>
     25  <TetrisStone camerapositiontemplate=tetrisstonecameras>
     26    <attached>
     27      <Model position="0,0,0" mesh="crate.mesh" scale=1 />
     28    </attached>
     29  </TetrisStone>
     30</Template>
     31
     32
     33
    1434<Template name=tetrisbrickcameras defaults=0>
    1535  <TetrisBrick>
     
    2242</Template>
    2343
    24 <Template name=tetrisstone>
    25   <TetrisStone>
     44<Template name=tetrisbrick>
     45  <TetrisBrick camerapositiontemplate=tetrisbrickcameras>
    2646    <attached>
    2747      <Model position="0,0,0" mesh="crate.mesh" scale=1 />
    2848    </attached>
    29   </TetrisStone>
    30 </Template>
    31 
    32 <Template name=tetrisbrick>
    33   <TetrisBrick camerapositiontemplate=tetrisbrickcameras>
    3449  </TetrisBrick>
    3550</Template>
  • code/branches/pCuts/src/modules/tetris/TetrisBrick.cc

    r9082 r9083  
    5353        RegisterObject(TetrisBrick);
    5454
    55         this->shapeIndex_ = 6; //<! TODO: random number between 0 and 7
     55        this->shapeIndex_ = 3; //<! TODO: random number between 0 and 7
    5656        this->stonesPerBrick_ = 4; //<! most tetris bricks is formed by 4 stones
    5757        this->delay_ = false;
  • code/branches/pCuts/src/orxonox/worldentities/ControllableEntity.cc

    r9016 r9083  
    177177    {
    178178        if (this->cameraPositions_.size() <= 0)
    179             return 0;
     179            {orxout()<< "camareapositions_size == 0"<<endl ; return 0;}
    180180
    181181        unsigned int counter = 0;
     
    196196        if(this->camera_ != NULL && this->cameraPositions_.size() > 0)
    197197        {
     198        orxout()<< "Cameraposition is set."<<endl;
    198199            if(index >= this->cameraPositions_.size())
    199200                index = 0;
Note: See TracChangeset for help on using the changeset viewer.