Changeset 10641 in orxonox.OLD for branches/vs-enhencements/src/util/track
- Timestamp:
- Apr 26, 2007, 2:10:37 PM (18 years ago)
- Location:
- branches/vs-enhencements/src/util/track
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/util/track/track.cc
r10640 r10641 255 255 { 256 256 Vector tmp = this->calcPos(); 257 258 257 258 259 259 Vector dV = tmp - this->trackNode->getAbsCoor(); 260 260 float dx = speed * dt; 261 261 float ratio = dx / dV.len(); 262 262 263 263 if( dt > 0.0f) 264 264 { … … 267 267 } 268 268 tmp = this->calcPos(); 269 269 270 270 Vector v(0.0, 1.0, 0.0); 271 271 Quaternion quat = Quaternion(this->calcDir(), v); 272 272 Quaternion q(-PI/2, v); 273 273 quat = quat * q; 274 274 275 275 // move trackNode of the track 276 276 this->trackNode->shiftCoor(tmp - this->trackNode->getAbsCoor()); -
branches/vs-enhencements/src/util/track/track.h
r10640 r10641 43 43 float duration; //!< The time used to cross this Track (curve). 44 44 float endTime; //!< The time at which this Track ends. 45 float width; //!< Th width of the Path. This tells the Player(s), how far he(they) can go to the left/right.46 float height; 47 float depth; 48 float stretch; 45 float width; //!< The width of the action box, next to the player. 46 float height; //!< The Height of the action box, next to the player 47 float depth; //!< Depth of the action box 48 float stretch; //!< multiplyer between w/h at player and w/h at far end of the action box 49 49 50 50 int nodeCount; //!< The count of points this Track has.
Note: See TracChangeset
for help on using the changeset viewer.