- Timestamp:
- Jun 18, 2009, 10:00:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/objects/worldentities/ExplosionChunk.cc
r3188 r3192 151 151 Vector3 change(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1)); 152 152 change.normalise(); 153 change *= rnd(0.4 , 0.8);153 change *= rnd(0.4f, 0.8f); 154 154 Vector3 velocity = this->getVelocity(); 155 155 velocity.normalise(); 156 156 velocity += change; 157 157 velocity.normalise(); 158 velocity *= length * rnd(0.8 , 1.0);158 velocity *= length * rnd(0.8f, 1.0f); 159 159 160 160 this->setVelocity(velocity);
Note: See TracChangeset
for help on using the changeset viewer.