- Timestamp:
- May 31, 2010, 3:40:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fps/src/orxonox/worldentities/pawns/FpsPlayer.h
r6872 r7052 35 35 #include <LinearMath/btVector3.h> 36 36 #include "util/Math.h" 37 #include "tools/Mesh.h" 37 38 #include "Pawn.h" 38 39 … … 58 59 virtual void rotateRoll(const Vector2& value); 59 60 61 62 inline void setMeshSource(const std::string& meshname) 63 { this->meshSrc_ = meshname; this->changedMesh(); } 64 inline const std::string& getMeshSource() const 65 { return this->meshSrc_; } 66 60 67 void boost(); //acctually jump 61 68 … … 63 70 64 71 bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 72 73 virtual void addedWeaponPack(WeaponPack* wPack); 65 74 66 75 protected: … … 75 84 float auxilaryThrust_; 76 85 float rotationThrust_; 86 std::string weaponmashname; 77 87 btVector3 localLinearAcceleration_; 78 88 btVector3 localAngularAcceleration_; … … 82 92 float speed_; 83 93 94 void changedMesh(); 95 Mesh mesh_; 96 std::string meshSrc_; 84 97 float yaw_; 85 98 float pitch_; … … 89 102 bool thistickboost; 90 103 Quaternion savedOrientation_; 104 Ogre::SceneNode* weaponNode; 105 Ogre::Camera* camera_; 91 106 }; 92 107 }
Note: See TracChangeset
for help on using the changeset viewer.