JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
force_generator.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
7namespace frcsim {
8
9class RigidBody;
10
23 public:
24 virtual ~ForceGenerator() = default;
25 virtual void apply(RigidBody& body, double dt_s) const = 0;
26};
27
28} // namespace frcsim
Interface for force laws used by the rigid-body integrator.
Definition force_generator.hpp:22
virtual ~ForceGenerator()=default
virtual void apply(RigidBody &body, double dt_s) const =0
Simulated rigid body with translational/angular dynamics and optional aero metadata.
Definition rigid_body.hpp:44
Definition vector.hpp:13