- Timestamp:
- Jan 24, 2007, 4:43:49 PM (18 years ago)
- Location:
- branches/playability/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/lib/math/curve.cc
r10297 r10335 288 288 Vector BezierCurve::calcDir (float t) 289 289 { 290 return this->dirCurve->calcPos(t); 290 return this->calcPos(t + 0.01) - this->calcPos(t); 291 //return this->dirCurve->calcPos(t); 291 292 } 292 293 -
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; -
branches/playability/src/world_entities/space_ships/space_ship.cc
r10333 r10335 884 884 registerEvent(KeyMapper::PEV_VIEW5); 885 885 886 State::getCamera()->setParentMode(PNODE_ MOVEMENT);886 State::getCamera()->setParentMode(PNODE_ALL); 887 887 888 888 //this->updateTravelDistance();
Note: See TracChangeset
for help on using the changeset viewer.