Physsim::RecurrentForce Class Reference

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

#include <RecurrentForce.h>

Inheritance diagram for Physsim::RecurrentForce:

Physsim::Base List of all members.

Public Member Functions

bool is_skipped (DynamicBodyPtr body) const
 Determines whether or not this body should be skipped from consideration.
virtual void add_force (std::vector< DynamicBodyPtr > &bodies)=0
 Abstract method for applying this force/torque to a list of bodies.
void add_skipped (DynamicBodyPtr body)
 Indicates that a body is to be skipped from consideration.
void remove_skipped (DynamicBodyPtr body)
 Indicates that a body is no longer to be skipped from consideration.
void clear_skipped ()
 Clears the set of skipped bodies (force will be applied to all bodies).

Protected Attributes

std::map< DynamicBodyPtr,
bool > 
_skipbodies
 The list of bodies for which this force/torque is not to be applied.

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 files:
Generated on Wed Oct 24 14:54:23 2007 for Physsim by  doxygen 1.5.1