- Timestamp:
- Dec 10, 2008, 1:38:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/ControllableEntity.h
r2300 r2374 33 33 34 34 #include "MovableEntity.h" 35 #include "objects/Tickable.h"36 35 37 36 namespace orxonox 38 37 { 39 class _OrxonoxExport ControllableEntity : public MovableEntity , public Tickable38 class _OrxonoxExport ControllableEntity : public MovableEntity 40 39 { 41 40 public: … … 72 71 virtual void switchCamera(); 73 72 74 inline const Vector3& getVelocity() const75 { return this->velocity_; }76 inline const Vector3& getAcceleration() const77 { return this->acceleration_; }78 73 inline const std::string& getHudTemplate() const 79 74 { return this->hudtemplate_; } 80 81 inline void setAcceleration(const Vector3& acceleration)82 { this->acceleration_ = acceleration; }83 inline void setAcceleration(float x, float y, float z)84 { this->acceleration_.x = x; this->acceleration_.y = y; this->acceleration_.z = z; }85 75 86 76 inline Camera* getCamera() const … … 109 99 { return this->bControlled_; } 110 100 111 Vector3 acceleration_;112 113 101 private: 114 102 void overwrite(); … … 116 104 117 105 void processServerPosition(); 118 void processServer Velocity();106 void processServerLinearVelocity(); 119 107 void processServerOrientation(); 108 void processServerAngularVelocity(); 120 109 121 110 void processClientPosition(); 122 void processClient Velocity();111 void processClientLinearVelocity(); 123 112 void processClientOrientation(); 113 void processClientAngularVelocity(); 124 114 125 void positionChanged(); 126 void orientationChanged(); 127 void velocityChanged(); 115 void positionChanged (bool bContinuous); 116 void orientationChanged (bool bContinuous); 117 void linearVelocityChanged (bool bContinuous); 118 void angularVelocityChanged(bool bContinuous); 128 119 129 120 void networkcallback_changedplayerID(); … … 135 126 Vector3 server_position_; 136 127 Vector3 client_position_; 137 Vector3 server_ velocity_;138 Vector3 client_ velocity_;128 Vector3 server_linear_velocity_; 129 Vector3 client_linear_velocity_; 139 130 Quaternion server_orientation_; 140 131 Quaternion client_orientation_; 132 Vector3 server_angular_velocity_; 133 Vector3 client_angular_velocity_; 141 134 142 135 PlayerInfo* player_;
Note: See TracChangeset
for help on using the changeset viewer.