Fix Repo + add basics

This commit is contained in:
2023-10-31 00:37:29 +01:00
parent 5348c6e002
commit 047b913dfa
10 changed files with 200 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
#ifndef MASSSPRINGSYSTEMSIMULATOR_h
#define MASSSPRINGSYSTEMSIMULATOR_h
#include "Simulator.h"
#include "MassPoint.h"
#include "Spring.h"
// Do Not Change
#define EULER 0
@@ -54,5 +56,9 @@ private:
Point2D m_mouse;
Point2D m_trackmouse;
Point2D m_oldtrackmouse;
//Mass points and springs
std::vector<std::shared_ptr<MassPoint>> masspoints;
std::vector<Spring> springs;
};
#endif