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
7
namespace
frcsim
{
8
9
class
RigidBody
;
10
22
class
ForceGenerator
{
23
public
:
24
virtual
~ForceGenerator
() =
default
;
25
virtual
void
apply
(
RigidBody
& body,
double
dt_s)
const
= 0;
26
};
27
28
}
// namespace frcsim
frcsim::ForceGenerator
Interface for force laws used by the rigid-body integrator.
Definition
force_generator.hpp:22
frcsim::ForceGenerator::~ForceGenerator
virtual ~ForceGenerator()=default
frcsim::ForceGenerator::apply
virtual void apply(RigidBody &body, double dt_s) const =0
frcsim::RigidBody
Simulated rigid body with translational/angular dynamics and optional aero metadata.
Definition
rigid_body.hpp:44
frcsim
Definition
vector.hpp:13
src
main
driver
include
frcsim
forces
force_generator.hpp
Generated by
1.15.0