JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
frcsim::ForceGenerator Class Referenceabstract

Interface for force laws used by the rigid-body integrator. More...

#include <force_generator.hpp>

Inheritance diagram for frcsim::ForceGenerator:
frcsim::GravityForce frcsim::MotorForce frcsim::SpringForce

Public Member Functions

virtual ~ForceGenerator ()=default
virtual void apply (RigidBody &body, double dt_s) const =0

Detailed Description

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

Constructor & Destructor Documentation

◆ ~ForceGenerator()

virtual frcsim::ForceGenerator::~ForceGenerator ( )
virtualdefault

Member Function Documentation

◆ apply()

virtual void frcsim::ForceGenerator::apply ( RigidBody & body,
double dt_s ) const
pure virtual

Implemented in frcsim::GravityForce.


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