diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-11-17 06:58:13 -0500 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-11-17 06:58:13 -0500 |
commit | a9de99cd643fbb1bb1555fd7206202fb600093e6 (patch) | |
tree | 4200bdcaf045f1a676c8f13825df2fed5ebb6f55 /2d/softbody/softbody_1/undamped.h | |
parent | fd3c1e74e7ebe9125b98dba311efcbe73e89859e (diff) |
(mkosarek) Fixing the displacement displayer
Diffstat (limited to '2d/softbody/softbody_1/undamped.h')
-rw-r--r-- | 2d/softbody/softbody_1/undamped.h | 10 |
1 files changed, 10 insertions, 0 deletions
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(); } |