Engine
constant_force.h
1 #include <Eigen/Core>
2 #include <GL/glew.h>
3 #include <physics_entity.h>
4 #include <memory>
5 #include <vector3G.h>
6 
7 
8 #ifndef CONSTANT_FORCE_GENERATOR
9 #define CONSTANT_FORCE_GENERATOR
10 
14 {
15  private:
17  Vector3Gf m_accel;
18  public:
23 
28  ConstantForceGenerator(Vector3Gf accel);
29 
34 
40  void AccumulateForce(std::shared_ptr<PhysicsEntity> entity, Vector3Gf &F) const;
41 
42 };
43 #endif
void AccumulateForce(std::shared_ptr< PhysicsEntity > entity, Vector3Gf &F) const
Definition: constant_force.cpp:16
A constant force throughout all space.
Definition: constant_force.h:13
~ConstantForceGenerator()
Definition: constant_force.cpp:14
ConstantForceGenerator()
Definition: constant_force.cpp:3