summaryrefslogtreecommitdiff
path: root/2d/softbody/softbody_1/undamped.h
blob: 6fa0afb8de68ed90ad96a031d4db9b8cc7ef8e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
}