Moby
Public Member Functions | Public Attributes | List of all members
Moby::GravityForce Class Reference

Gravitational force applied to bodies. More...

#include <GravityForce.h>

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

Public Member Functions

 GravityForce ()
 Constructs a default gravity vector of [0,0,0].
 
 GravityForce (const GravityForce &source)
 Copy constructor.
 
virtual void add_force (boost::shared_ptr< Ravelin::DynamicBodyd > body)
 Adds gravity to a body.
 
virtual void load_from_xml (boost::shared_ptr< const XMLTree > node, std::map< std::string, BasePtr > &id_map)
 Implements Base::load_from_xml()
 
virtual void save_to_xml (XMLTreePtr node, std::list< boost::shared_ptr< const Base > > &shared_objects) const
 Implements Base::save_to_xml()
 
- Public Member Functions inherited from Moby::Base
 Base (const Base *b)
 

Public Attributes

Ravelin::Vector3d gravity
 The gravity vector.
 
- Public Attributes inherited from Moby::Base
boost::shared_ptr< void > userdata
 Any relevant userdata.
 
std::string id
 The unique ID for this object.
 

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.
 

Detailed Description

Gravitational force applied to bodies.


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