Moby
Public Member Functions | List of all members
Moby::RecurrentForce Class Referenceabstract

Used for applying forces to the simulation on every time step. More...

#include <RecurrentForce.h>

Inheritance diagram for Moby::RecurrentForce:
Moby::Base Moby::GravityForce Moby::StokesDragForce

Public Member Functions

virtual void add_force (boost::shared_ptr< Ravelin::DynamicBodyd > body)=0
 Abstract method for applying this force/torque to a body.
 
- Public Member Functions inherited from Moby::Base
 Base (const Base *b)
 
virtual void save_to_xml (XMLTreePtr node, std::list< boost::shared_ptr< const Base > > &shared_objects) const
 Method for saving this object to XML. More...
 
virtual void load_from_xml (boost::shared_ptr< const XMLTree > node, std::map< std::string, BasePtr > &id_map)
 Method for loading the data for this object from XML. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Moby::Base
template<class T >
static boost::shared_ptr< T > clone (boost::shared_ptr< T > x)
 Static method for cloning a shared pointer.
 
- Public Attributes inherited from Moby::Base
boost::shared_ptr< void > userdata
 Any relevant userdata.
 
std::string id
 The unique ID for this object.
 

Detailed Description

Used for applying forces to the simulation on every time step.

Recurrent forces may be constant (like gravity) or vary by the velocity of the body (like wind resistance). The recurrent force can be either an actual force, or a torque, or both.


The documentation for this class was generated from the following file: