Moby
RecurrentForce.h
1 /****************************************************************************
2  * Copyright 2005 Evan Drumwright
3  * This library is distributed under the terms of the Apache V2.0
4  * License (obtainable from http://www.apache.org/licenses/LICENSE-2.0).
5  ****************************************************************************/
6 
7 #ifndef _RECURRENT_FORCE
8 #define _RECURRENT_FORCE
9 
10 #include <vector>
11 #include <map>
12 #include <boost/shared_ptr.hpp>
13 #include <Ravelin/DynamicBodyd.h>
14 #include <Moby/Base.h>
15 
16 namespace Moby {
17 
19 
24 class RecurrentForce : public virtual Base
25 {
26  public:
27  virtual ~RecurrentForce() { }
28 
30  virtual void add_force(boost::shared_ptr<Ravelin::DynamicBodyd> body) = 0;
31 }; // end class
32 
33 } // end namespace Moby
34 
35 #endif
Used for applying forces to the simulation on every time step.
Definition: RecurrentForce.h:24
Class from which all Moby classes are derived.
Definition: Base.h:20
virtual void add_force(boost::shared_ptr< Ravelin::DynamicBodyd > body)=0
Abstract method for applying this force/torque to a body.