Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2018, 10:48:32 AM (5 years ago)
Author:
ottka
Message:

New HUDs and Start

File:
1 edited

Legend:

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

    r12128 r12144  
    4848        this->model_ = nullptr;
    4949        this->cs_ = nullptr;
     50        this->arc = nullptr;
    5051
    5152        this->enableCollisionCallback();
     
    6667            if (this->cs_)
    6768                this->cs_->destroy();
     69            if (this->arc)
     70                this->arc->destroy();
    6871        }
    6972    }
     
    9093        else if (type == 2 ) {
    9194            model_->setMeshSource("OrxoKartStreckenabschnittZiel.mesh");
     95
     96            arc = new Model(this->getContext());
     97            arc->setMeshSource("OrxoKartStartTor.mesh");
     98            arc->setPosition(Vector3(x*1.0f, -1.0f, z*1.0f));
     99            arc->setScale3D(Vector3(s*1.0f/10, s*1.0f/10, s*1.0f/10));
     100            arc->yaw(Degree(-90));
     101            this->attach(arc);
    92102        }
    93103        model_->setScale3D(Vector3(s*1.0f, 8.0f, s*1.0f));
Note: See TracChangeset for help on using the changeset viewer.