- Timestamp:
- Nov 30, 2008, 12:36:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/MovableEntity.h
r2298 r2300 67 67 void setDirection(const Vector3& direction, Ogre::Node::TransformSpace relativeTo = Ogre::Node::TS_LOCAL, const Vector3& localDirectionVector = Vector3::NEGATIVE_UNIT_Z); 68 68 69 void setVelocity(const Vector3& velocity); 70 inline void setVelocity(float x, float y, float z) 71 { this->velocity_.x = x; this->velocity_.y = y; this->velocity_.z = z; } 72 inline const Vector3& getVelocity() const 73 { return this->velocity_; } 74 75 protected: 76 Vector3 velocity_; 69 77 70 78 private: 71 79 //void attachPhysicalObject(WorldEntity* object); 72 80 73 virtual void internalSetVelocity(const Vector3& velocity) { }74 81 virtual void positionChanged() { } 75 82 virtual void orientationChanged() { } 76 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type); 83 virtual void velocityChanged() { } 84 85 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const; 77 86 78 87 // Bullet btMotionState related
Note: See TracChangeset
for help on using the changeset viewer.