Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2015, 6:01:56 PM (9 years ago)
Author:
fvultier
Message:

2 problems fixed: The collidesAgainst function in the hovership get now properly called. The Hoverhalls have a collisionShape that works.

File:
1 edited

Legend:

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

    r10694 r10760  
    4949    }
    5050
    51     void HoverShip::moveFrontBack(const Vector2& value)
     51    /*void HoverShip::moveFrontBack(const Vector2& value)
    5252                { this->steering_.z -= value.x; }
    5353
     
    6060    void HoverShip::rotateYaw(const Vector2& value) {}
    6161    void HoverShip::rotatePitch(const Vector2& value) {}
    62     void HoverShip::rotateRoll(const Vector2& value) {}
     62    void HoverShip::rotateRoll(const Vector2& value) {}*/
    6363
    64     bool HoverShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     64    bool HoverShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint)
    6565    {
     66        orxout() << "collision" << endl;
     67
    6668        /*if (contactPoint.m_normalWorldOnB.y() > 0.6)
    6769            this->isFloor_ = true;
Note: See TracChangeset for help on using the changeset viewer.