Changeset 11029 for code/branches/presentationHS15/src/orxonox
- Timestamp:
- Jan 3, 2016, 8:49:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15/src/orxonox/worldentities/ExplosionPart.cc
r11026 r11029 145 145 direction_.normalise(); 146 146 147 Vector3 finalDirection = direction_ + sin((rnd(0, angle_))* M_PI/180)*velocityOffset;147 Vector3 finalDirection = direction_ + sin((rnd(0, angle_))*math::pi/180)*velocityOffset; 148 148 149 149 this->explosionEntity_->setVelocity(finalDirection*rnd(minSpeed_,maxSpeed_));
Note: See TracChangeset
for help on using the changeset viewer.