Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 13, 2005, 11:57:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: added a simple force; GRAVITY

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  
    1616//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
    1717
    18 #include "proto_class.h"
     18#include "gravity.h"
    1919
    2020using namespace std;
     
    2525   \todo this constructor is not jet implemented - do it
    2626*/
    27 ProtoClass::ProtoClass ()
     27Gravity::Gravity ()
    2828{
    29    this->setClassName ("ProtoClass");
     29   this->setClassName ("Gravity");
    3030}
    3131
     
    3535
    3636*/
    37 ProtoClass::~ProtoClass ()
     37Gravity::~Gravity ()
    3838{
    3939  // delete what has to be deleted here
    4040}
     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*/
     47Vector 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.