Changeset 10335 in orxonox.OLD for branches/playability/src/util
- Timestamp:
- Jan 24, 2007, 4:43:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/track/track.cc
r10297 r10335 71 71 this->trackNode = new PNode(PNode::getNullParent(), PNODE_ALL); 72 72 this->nodeCount = 0; 73 this->localTime = 0; 73 74 } 74 75 … … 197 198 // if (this->localTime <= this->maxTime) 198 199 this->localTime += dt; 200 if(this->localTime >= this->duration) 201 this->localTime = 0; 199 202 // if (this->localTime > this->currentTrackElem->endTime 200 203 // && this->currentTrackElem->children) … … 216 219 Vector tmp = this->calcPos(); 217 220 //Quaternion quat = Quaternion(this->calcDir(), Vector(this->curve->calcAcc(this->localTime/this->duration).x,1,this->curve->calcAcc(this->localTime/this->duration).z)); 218 Quaternion quat = Quaternion(this->calcDir(), 0);221 219 222 220 223 Vector v(0.0, 1.0, 0.0); 224 Quaternion quat = Quaternion(this->calcDir(), v); 221 225 Quaternion q(-PI/2, v); 222 226 quat = quat * q;
Note: See TracChangeset
for help on using the changeset viewer.