- Timestamp:
- May 25, 2009, 5:54:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/MovableEntity.cc
r3033 r3064 80 80 if (victim) 81 81 { 82 victim->damage(this->collisionDamage_ * victim->getVelocity().dotProduct(this->getVelocity()));82 victim->damage(this->collisionDamage_ * (victim->getVelocity() - this->getVelocity()).length()); 83 83 } 84 84 }
Note: See TracChangeset
for help on using the changeset viewer.