From a9de99cd643fbb1bb1555fd7206202fb600093e6 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Wed, 17 Nov 2021 06:58:13 -0500 Subject: (mkosarek) Fixing the displacement displayer --- 2d/softbody/softbody_1/undamped.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '2d/softbody/softbody_1/undamped.h') diff --git a/2d/softbody/softbody_1/undamped.h b/2d/softbody/softbody_1/undamped.h index a87e446..6fa0afb 100644 --- a/2d/softbody/softbody_1/undamped.h +++ b/2d/softbody/softbody_1/undamped.h @@ -1,8 +1,18 @@ #pragma once +#include "../../../shared_cpp/types.h" struct WebglContext; namespace Undamped { + struct UndampedInitVariables { + float32 springLength = 150.f; + float32 initialDisplacement = 0.f; + float32 k = 1.f; + float32 mass = 1.f; + }; + void init(WebglContext* inContext); + void setInitVariables(UndampedInitVariables newVariables); + UndampedInitVariables getInitVariables(); } -- cgit v1.2.1