#pragma once struct Spring { std::weak_ptr mp1; std::weak_ptr mp2; float initialLength; bool isValid() { return !mp1.expired() && !mp2.expired(); } };