Fix Repo + add basics
This commit is contained in:
11
Simulations/Spring.h
Normal file
11
Simulations/Spring.h
Normal 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(); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user