Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2016, 4:02:21 PM (9 years ago)
Author:
tgidron
Message:

New Pickup + try to create ground from separate tiles

Location:
code/branches/tgidronFS16
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tgidronFS16

  • code/branches/tgidronFS16/src/modules/hover/Hover.cc

    r11182 r11184  
    169169            Pawn* crate = new Pawn(origin_->getContext());
    170170
     171           
     172            crate->addTemplate(origin_->getObstacleTemplate()); 
    171173            crate->setPosition(get3dCoordinates(rand()%numCells, rand()%numCells, 10.0f));
    172             crate->addTemplate(origin_->getObstacleTemplate()); 
    173             crate->setInitialHealth(100.0f);
     174            //ate->setInitialHealth(100.0f);
    174175           
    175176
  • code/branches/tgidronFS16/src/modules/hover/HoverFlag.cc

    r11099 r11184  
    8787        model_ = new Model(this->getContext());
    8888        model_->setMeshSource("ss_flag_eu.mesh");
    89         model_->setScale3D(Vector3(5, 5, 5));
    90         model_->setPosition(Vector3(xCoordinate*cellSize*1.0f + cellSize/2,10.0f,yCoordinate*cellSize*1.0f + cellSize/2));
     89        model_->setScale3D(Vector3(30, 30, 30));
     90        model_->setPosition(Vector3(xCoordinate*cellSize*1.0f + cellSize/2,50.0f,yCoordinate*cellSize*1.0f + cellSize/2));
    9191
    9292        this->attach(model_);
    9393
    9494        cs_ = new BoxCollisionShape(this->getContext());
    95         cs_->setHalfExtents(Vector3(5, 5, 5));
     95        cs_->setHalfExtents(Vector3(30, 30, 30));
    9696        cs_->setPosition(Vector3(xCoordinate*cellSize*1.0f + cellSize/2,0.0f,yCoordinate*cellSize*1.0f + cellSize/2));
    9797
  • code/branches/tgidronFS16/src/modules/hover/HoverOrigin.cc

    r11182 r11184  
    4848        //not needed
    4949
    50         /*pickupTemplate_ = "";
     50        pickupTemplate_ = "";
    5151        pickupRepresentationTemplate_ = "";
    5252
     
    5656
    5757        pickupTemplateShrink_ = "";
    58         pickupRepresentationTemplateShrink_ = "";*/
     58        pickupRepresentationTemplateShrink_ = "";
    5959    }
    6060
Note: See TracChangeset for help on using the changeset viewer.