- Timestamp:
- Dec 5, 2018, 10:48:32 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKartTile.cc
r12128 r12144 48 48 this->model_ = nullptr; 49 49 this->cs_ = nullptr; 50 this->arc = nullptr; 50 51 51 52 this->enableCollisionCallback(); … … 66 67 if (this->cs_) 67 68 this->cs_->destroy(); 69 if (this->arc) 70 this->arc->destroy(); 68 71 } 69 72 } … … 90 93 else if (type == 2 ) { 91 94 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); 92 102 } 93 103 model_->setScale3D(Vector3(s*1.0f, 8.0f, s*1.0f));
Note: See TracChangeset
for help on using the changeset viewer.