mirror of
https://github.com/SMGCommunity/Petari.git
synced 2026-11-10 17:49:24 -10:00
21 lines
315 B
C++
21 lines
315 B
C++
#pragma once
|
|
|
|
#include <revolution.h>
|
|
|
|
class SpringValue {
|
|
public:
|
|
SpringValue();
|
|
SpringValue(f32, f32, f32, f32, f32);
|
|
|
|
void setParam(f32, f32, f32, f32, f32);
|
|
f32 update();
|
|
|
|
void reset();
|
|
|
|
f32 mRestValue;
|
|
f32 mSpringValue;
|
|
f32 mAccelFactor;
|
|
f32 mDamping;
|
|
f32 mVelocity;
|
|
};
|