Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2018, 12:06:14 PM (5 years ago)
Author:
ottka
Message:

Make two levels and more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKartTile.cc

    r12111 r12128  
    8181        type of tile. 1 for normal tile, 2 for Start/End tile     
    8282    */
    83     void OrxoKartTile::init(int x, int z, int s, int type)
     83    void OrxoKartTile::init(int x, int z, int s, float r, int type)
    8484    {
    8585        // floor design according to its type
     
    9393        model_->setScale3D(Vector3(s*1.0f, 8.0f, s*1.0f));
    9494        model_->setPosition(Vector3(x*1.0f, 0.0f, z*1.0f));
     95        model_->pitch(Degree(r));
    9596
    9697        this->attach(model_);
     
    101102        cs_->setHalfExtents(Vector3(s/2.0f, 1.0f, s/2.0f));
    102103        cs_->setPosition(Vector3(x*1.0f, -1.0f, z*1.0f));
     104        cs_->pitch(Degree(r));
    103105
    104106        this->attachCollisionShape(cs_);
Note: See TracChangeset for help on using the changeset viewer.