Changeset 1584 for code/branches/core3/src/orxonox/objects/Projectile.cc
- Timestamp:
- Jun 10, 2008, 3:46:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/objects/Projectile.cc
r1574 r1584 75 75 SetConfigValue(speed_, 5000.0).description("The speed of a projectile in units per second"); 76 76 77 this->setVelocity(this->owner_->getInitialDir() * this->speed_); 77 if (this->owner_) 78 this->setVelocity(this->owner_->getInitialDir() * this->speed_); 78 79 } 79 80
Note: See TracChangeset
for help on using the changeset viewer.