#include <RecurrentForce.h>
Inheritance diagram for Physsim::RecurrentForce:

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. | |
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.
1.5.1