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

11
Simulations/Spring.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
struct Spring
{
std::weak_ptr<MassPoint> mp1;
std::weak_ptr<MassPoint> mp2;
float initialLength;
bool isValid() { return !mp1.expired() && !mp2.expired(); }
};