Changeset 10694
- Timestamp:
- Oct 26, 2015, 1:36:43 PM (9 years ago)
- Location:
- code/branches/hoverHS15/src/modules/hover
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hoverHS15/src/modules/hover/HoverShip.cc
r10664 r10694 49 49 } 50 50 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 51 86 /* Hover* HoverShip::getGame() 52 87 { -
code/branches/hoverHS15/src/modules/hover/HoverShip.h
r10665 r10694 53 53 virtual void tick(float dt); 54 54 55 }; 55 virtual void moveFrontBack(const Vector2& value); 56 57 virtual void moveRightLeft(const Vector2& value); 58 59 virtual void moveUpDown(const Vector2& value); 60 61 virtual void rotateYaw(const Vector2& value); 62 63 virtual void rotatePitch(const Vector2& value); 64 65 virtual void rotateRoll(const Vector2& value); 66 67 virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 68 69 virtual void boost(bool bBoost); 70 71 }; 56 72 } 57 73
Note: See TracChangeset
for help on using the changeset viewer.