Engine
gravity_force.h
1 #include <physics_entity.h>
2 #include <memory>
3 #include <vector3G.h>
4 
5 #ifndef GRAVITY_FORCE_H
6 #define GRAVITY_FORCE_H
7 
11 {
12  private :
13  GLfloat m_G = 6.673e-11; // Universal gravitational constant
14 
15  public :
20 
27  void AccumulateForce(const std::shared_ptr<PhysicsEntity> e1, const std::shared_ptr<PhysicsEntity> e2, Vector3Gf &F) const;
28 
35  void AccumulatedFdx(const std::shared_ptr<PhysicsEntity> e1, const std::shared_ptr<PhysicsEntity> e2, Eigen::Matrix<GLfloat,3,3> &dF) const;
36 
37 };
38 
39 #endif
void AccumulateForce(const std::shared_ptr< PhysicsEntity > e1, const std::shared_ptr< PhysicsEntity > e2, Vector3Gf &F) const
Definition: gravity_force.cpp:5
void AccumulatedFdx(const std::shared_ptr< PhysicsEntity > e1, const std::shared_ptr< PhysicsEntity > e2, Eigen::Matrix< GLfloat, 3, 3 > &dF) const
Definition: gravity_force.cpp:23
Computes graviational force of attraction between 2 entities.
Definition: gravity_force.h:10
GravityForceGenerator()
Definition: gravity_force.cpp:3