qtrocket/sim/ConstantGravityModel.h
Travis Hunter e6bf1fea9b
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc-13, g++-13, ubuntu-latest) (push) Has been cancelled
Revert "Merge pull request #20 from cthunter01/propagator"
This reverts commit 6280d9fb0184275843a8f4406c7293e41e65a639, reversing
changes made to 3c9c8b8c6a2b2e7430ff09efdc2cc0c1996b16ca.
2025-04-16 18:23:28 -06:00

26 lines
463 B
C++

#ifndef SIM_CONSTANTGRAVITYMODEL_H
#define SIM_CONSTANTGRAVITYMODEL_H
// qtrocket headers
#include "sim/GravityModel.h"
#include "utils/math/MathTypes.h"
namespace sim {
class ConstantGravityModel : public GravityModel
{
public:
ConstantGravityModel() {}
virtual ~ConstantGravityModel() {}
Vector3 getAccel(double, double, double) override
{
return Vector3(0.0, 0.0, -9.8);
}
};
} // namespace sim
#endif // SIM_CONSTANTGRAVITYMODEL_H