|
JSim 2026.06.01-p(1)
|
Interface for force laws used by the rigid-body integrator. More...
#include <force_generator.hpp>
Public Member Functions | |
| virtual | ~ForceGenerator ()=default |
| virtual void | apply (RigidBody &body, double dt_s) const =0 |
Interface for force laws used by the rigid-body integrator.
Implementations encode a physics principle that maps the current body state (and optionally time step) to an applied force in newtons. The world update then uses Newton's second law, F = m a, to convert those forces into accelerations.
Reference: https://en.wikipedia.org/wiki/Newton%27s_laws_of_motion
|
virtualdefault |
|
pure virtual |
Implemented in frcsim::GravityForce.