- Timestamp:
- Apr 26, 2007, 2:10:37 PM (18 years ago)
- Location:
- branches/vs-enhencements/src
- Files:
-
- 2 added
- 4 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. -
branches/vs-enhencements/src/world_entities/WorldEntities.am
r10622 r10641 33 33 world_entities/weapons/spike_thrower.cc \ 34 34 world_entities/weapons/acid_launcher.cc \ 35 world_entities/weapons/rf_cannon.cc \ 35 36 \ 36 37 world_entities/projectiles/lbolt.cc \ … … 184 185 weapons/spike_thrower.h \ 185 186 weapons/acid_launcher.h \ 187 weapons/rf_cannon.h \ 186 188 \ 187 189 projectiles/lbolt.h \ -
branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc
r10640 r10641 26 26 #include "weapons/medium_blaster.h" 27 27 #include "weapons/heavy_blaster.h" 28 #include "weapons/rf_cannon.h" 28 29 #include "weapons/swarm_launcher.h" 29 30 #include "weapons/spike_thrower.h" … … 161 162 wpLeft1->setName( "LightBlaster"); 162 163 164 // Weapon* wpRight1 = new RFCannon (); 165 wpRight1->setName( "RFCannon"); 166 // Weapon* wpLeft1 = new RFCannon (); 167 wpLeft1->setName( "RFCannon"); 168 163 169 Weapon* wpRight2 = new MediumBlaster (); 164 170 wpRight2->setName( "MediumBlaster"); … … 173 179 Weapon* cannon = new SwarmLauncher(); 174 180 cannon->setName( "SwarmLauncher"); 175 /*176 Weapon* spike = new SpikeThrower();177 spike->setName( "SpikeThrower" );178 179 180 Weapon* acid0 = new AcidLauncher();181 acid0->setName( "AcidSplasher" );182 183 Weapon* acid1 = new AcidLauncher();184 acid1->setName( "AcidSplasher" );*/185 181 186 182 … … 1177 1173 1178 1174 State::getPlayer()->hud().setOverlayPercentage(100-int(100*this->actionWidthPercentage)); 1179 PRINTF(0)("TravelDistance has been updated\n");1175 // PRINTF(0)("TravelDistance has been updated\n"); 1180 1176 this->isTravelDistanceInit = true; 1181 1177 }
Note: See TracChangeset
for help on using the changeset viewer.