Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 2:05:58 PM (9 years ago)
Author:
meierman
Message:

Before finishing touch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/HoverFlag.cc

    r10894 r10928  
    9696    {
    9797        SUPER(HoverFlag, XMLPort, xmlelement, mode);
    98 
    99        // XMLPortParam(HoverFlag, "height", setHeight, getHeight, xmlelement, mode);
    100         //XMLPortParam(HoverFlag, "width", setWidth, getWidth, xmlelement, mode);
    10198    }
    10299
     
    119116    bool HoverFlag::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
    120117    {
    121        
    122 
    123         if(otherObject->isA(Class(HoverShip))){
    124 
    125             orxout()<<"TestCollision"<<endl;
     118        if(otherObject->isA(Class(HoverShip)))
    126119            collided_ = true;
    127             //this->destroyLater();
    128         }
    129 
    130 
    131         /*if (GameMode::isMaster() && enableCollisionDamage_)
    132         {
    133             Pawn* victim = orxonox_cast<Pawn*>(otherObject);
    134             if (victim)
    135             {
    136                 float damage = this->collisionDamage_ * (victim->getVelocity() - this->getVelocity()).length();
    137                 victim->hit(0, contactPoint, ownCollisionShape, damage);
    138             }
    139         }*/
    140 
    141120        return false;
    142121    }
Note: See TracChangeset for help on using the changeset viewer.