Changes between Version 2 and Version 3 of ~archive/CollisionReaction
- Timestamp:
- Nov 28, 2007, 12:39:19 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
~archive/CollisionReaction
v2 v3 1 1 = Collision Reaction = 2 [[ArchivePage]] 2 3 3 4 Module Pwner: Patrick Boenzli (patrick [at] orxonox [dot] net) … … 22 23 23 24 === Object Damage === 24 Object damage is evaluated with the [https://dev.orxonox.net/browser/trunk/src/lib/collision_reaction/cr_object_damage.h CRObjectDamage] !CollisionReaction object. Each WorldEntityhas got a {{{float damage}}} that can be accessed via {{{void setDamage(float damage)}}} and {{{float getDamage()}}}. The damage to another object is evaluated with this {{{damage}}} variable. Here is a short example:25 Object damage is evaluated with the [https://dev.orxonox.net/browser/trunk/src/lib/collision_reaction/cr_object_damage.h CRObjectDamage] !CollisionReaction object. Each [wiki:archive/WorldEntity WorldEntity] has got a {{{float damage}}} that can be accessed via {{{void setDamage(float damage)}}} and {{{float getDamage()}}}. The damage to another object is evaluated with this {{{damage}}} variable. Here is a short example: 25 26 {{{ 26 27 this->setDamage(100.0f);