Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2015, 1:36:43 PM (9 years ago)
Author:
bucyril
Message:

Made the code compile

File:
1 edited

Legend:

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

    r10664 r10694  
    4949    }
    5050
     51    void HoverShip::moveFrontBack(const Vector2& value)
     52                { this->steering_.z -= value.x; }
     53
     54    void HoverShip::moveRightLeft(const Vector2& value)
     55        { this->steering_.x += value.x; }
     56
     57    void HoverShip::moveUpDown(const Vector2& value)
     58        { this->steering_.y += value.x; }
     59
     60    void HoverShip::rotateYaw(const Vector2& value) {}
     61    void HoverShip::rotatePitch(const Vector2& value) {}
     62    void HoverShip::rotateRoll(const Vector2& value) {}
     63
     64    bool HoverShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     65    {
     66        /*if (contactPoint.m_normalWorldOnB.y() > 0.6)
     67            this->isFloor_ = true;
     68        else
     69            this->isFloor_ = false;
     70
     71        return false;*/
     72        return false;
     73    }
     74
     75    void HoverShip::boost(bool bBoost) {
     76        /*if (this->isFloor_)
     77        {
     78            if (!this->thisTickBoost_)
     79                this->localVelocity_.y = jumpValue_;
     80            //this->physicalBody_->applyCentralImpulse(btVector3(0, jumpvalue, 0));
     81            this->thisTickBoost_ = true;
     82            this->isFloor_ = false;
     83        }*/
     84    }
     85
    5186   /* Hover* HoverShip::getGame()
    5287    {
Note: See TracChangeset for help on using the changeset viewer.