summaryrefslogtreecommitdiff
path: root/2d/softbody/softbody_1/undamped.h
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-11-17 06:58:13 -0500
committerMatthew Kosarek <mattkae@protonmail.com>2021-11-17 06:58:13 -0500
commita9de99cd643fbb1bb1555fd7206202fb600093e6 (patch)
tree4200bdcaf045f1a676c8f13825df2fed5ebb6f55 /2d/softbody/softbody_1/undamped.h
parentfd3c1e74e7ebe9125b98dba311efcbe73e89859e (diff)
(mkosarek) Fixing the displacement displayer
Diffstat (limited to '2d/softbody/softbody_1/undamped.h')
-rw-r--r--2d/softbody/softbody_1/undamped.h10
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();
}