- Timestamp:
- Nov 28, 2018, 12:06:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKartTile.cc
r12111 r12128 81 81 type of tile. 1 for normal tile, 2 for Start/End tile 82 82 */ 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) 84 84 { 85 85 // floor design according to its type … … 93 93 model_->setScale3D(Vector3(s*1.0f, 8.0f, s*1.0f)); 94 94 model_->setPosition(Vector3(x*1.0f, 0.0f, z*1.0f)); 95 model_->pitch(Degree(r)); 95 96 96 97 this->attach(model_); … … 101 102 cs_->setHalfExtents(Vector3(s/2.0f, 1.0f, s/2.0f)); 102 103 cs_->setPosition(Vector3(x*1.0f, -1.0f, z*1.0f)); 104 cs_->pitch(Degree(r)); 103 105 104 106 this->attachCollisionShape(cs_);
Note: See TracChangeset
for help on using the changeset viewer.