Changeset 10621 for code/branches/presentationFS15merge/src/modules/weapons/projectiles/GravityBombField.cc
- Timestamp:
- Oct 4, 2015, 3:30:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS15merge/src/modules/weapons/projectiles/GravityBombField.cc
r10619 r10621 64 64 //Let the Bomb Modell in the centre rotate in a random direction. 65 65 Vector3 randomRotation; 66 srand(time(NULL)); 67 randomRotation.x = rand(); 68 randomRotation.y = rand(); 69 randomRotation.y = rand(); 66 randomRotation.x = rnd(); 67 randomRotation.y = rnd(); 68 randomRotation.y = rnd(); 70 69 randomRotation.normalise(); 71 70 bombModel_->setAngularAcceleration(randomRotation*(PEAK_ANGULAR_VELOCITY/FORCE_FIELD_LIFETIME)); … … 114 113 explosionCross_ = new ParticleEmitter(this->getContext()); 115 114 explosionCross_->setSource("Orxonox/FieldExplosion"); 116 explosionCross_->setOrientation(r and(), rand(), rand(), rand());115 explosionCross_->setOrientation(rnd(), rnd(), rnd(), rnd()); 117 116 explosionCross_->setScale(0.7); 118 117 this->attach(explosionCross_);
Note: See TracChangeset
for help on using the changeset viewer.