mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-03 23:17:06 +00:00
13 lines
272 B
C++
13 lines
272 B
C++
#pragma once
|
|
|
|
class SmoothFloat {
|
|
private:
|
|
float targetValue;
|
|
float remainingValue;
|
|
float lastAmount;
|
|
|
|
public:
|
|
SmoothFloat(); // girl love my girlfriend
|
|
float getNewDeltaValue(float deltaValue, float accelerationAmount);
|
|
float getTargetValue();
|
|
}; |