Changeset 4395 in orxonox.OLD for orxonox/trunk/src/lib/physics/fields
- Timestamp:
- May 30, 2005, 2:19:41 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/physics/fields
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/fields/field.h
r4338 r4395 43 43 \returns The Force Vector 44 44 */ 45 virtual Vector calcForce( float dt,const Vector& data) const = 0;45 virtual Vector calcForce(const Vector& data) const = 0; 46 46 47 47 void setMagnitude(const float& magnitude); -
orxonox/trunk/src/lib/physics/fields/gravity.cc
r4338 r4395 45 45 \returns The force. 46 46 */ 47 Vector Gravity::calcForce( float dt,const Vector& data) const47 Vector Gravity::calcForce(const Vector& data) const 48 48 { 49 return /*(this->getAbsDir().apply(Vector(0,1,0)))*/ Vector(0,-1,0) * this->getMagnitude() * dt;49 return /*(this->getAbsDir().apply(Vector(0,1,0)))*/ Vector(0,-1,0) * this->getMagnitude(); 50 50 } 51 51 -
orxonox/trunk/src/lib/physics/fields/gravity.h
r4338 r4395 21 21 virtual ~Gravity(); 22 22 23 virtual Vector calcForce( float dt,const Vector& data) const;23 virtual Vector calcForce(const Vector& data) const; 24 24 25 25 private: -
orxonox/trunk/src/lib/physics/fields/point_gravity.cc
r4338 r4395 45 45 \returns The force. 46 46 */ 47 Vector PointGravity::calcForce( float dt,const Vector& data) const47 Vector PointGravity::calcForce(const Vector& data) const 48 48 { 49 return (this->getAbsCoor() - data) * this->getMagnitude() * dt;49 return (this->getAbsCoor() - data) * this->getMagnitude(); 50 50 } 51 51 -
orxonox/trunk/src/lib/physics/fields/point_gravity.h
r4338 r4395 21 21 virtual ~PointGravity(); 22 22 23 virtual Vector calcForce( float dt,const Vector& data) const;23 virtual Vector calcForce(const Vector& data) const; 24 24 25 25 private: -
orxonox/trunk/src/lib/physics/fields/twirl.cc
r4338 r4395 45 45 \returns The force. 46 46 */ 47 Vector Twirl::calcForce( float dt,const Vector& data) const47 Vector Twirl::calcForce(const Vector& data) const 48 48 { 49 49 return /*this->getAbsDir()*/ Vector(0,1,0).cross(this->getAbsCoor() - data) 50 * this->getMagnitude() * dt;50 * this->getMagnitude(); 51 51 } 52 52 -
orxonox/trunk/src/lib/physics/fields/twirl.h
r4338 r4395 21 21 virtual ~Twirl(); 22 22 23 virtual Vector calcForce( float dt,const Vector& data) const;23 virtual Vector calcForce(const Vector& data) const; 24 24 25 25 private:
Note: See TracChangeset
for help on using the changeset viewer.