4jcraft/Minecraft.World/Util/SmoothFloat.h
2026-03-05 03:29:23 -05:00

13 lines
246 B
C++

#pragma once
class SmoothFloat
{
private:
float targetValue;
float remainingValue;
float lastAmount;
public:
SmoothFloat(); // 4J added
float getNewDeltaValue(float deltaValue, float accelerationAmount);
float getTargetValue();
};