Changeset 4180 in orxonox.OLD for orxonox/branches/physics/src/util/physics/fields/gravity.cc
- Timestamp:
- May 13, 2005, 11:57:13 PM (19 years ago)
- Location:
- orxonox/branches/physics/src/util/physics/fields
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/util/physics/fields/gravity.cc
r4178 r4180 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "gravity.h" 19 19 20 20 using namespace std; … … 25 25 \todo this constructor is not jet implemented - do it 26 26 */ 27 ProtoClass::ProtoClass()27 Gravity::Gravity () 28 28 { 29 this->setClassName (" ProtoClass");29 this->setClassName ("Gravity"); 30 30 } 31 31 … … 35 35 36 36 */ 37 ProtoClass::~ProtoClass()37 Gravity::~Gravity () 38 38 { 39 39 // delete what has to be deleted here 40 40 } 41 42 /** 43 \brief calculates the Gravity on any point in space 44 \param data The Position of the Point in space to attache gravity to. 45 \returns The force. 46 */ 47 Vector Gravity::calcForce(const Vector& data) const 48 { 49 return /*(this->getAbsDir().apply(Vector(0,1,0)))*/ Vector(0,-1,0) * this->getMagnitude(); 50 } 51 52
Note: See TracChangeset
for help on using the changeset viewer.