Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 2 and Version 3 of ~archive/CollisionReaction


Ignore:
Timestamp:
Nov 28, 2007, 12:39:19 AM (17 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/CollisionReaction

    v2 v3  
    11= Collision Reaction =
     2[[ArchivePage]]
    23
    34Module Pwner: Patrick Boenzli (patrick [at] orxonox [dot] net)
     
    2223
    2324=== 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 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:
     25Object 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:
    2526{{{
    2627  this->setDamage(100.0f);