removed git history

This commit is contained in:
DrPerkyLegit
2026-05-16 11:30:28 -04:00
commit afdf1d188c
2384 changed files with 416681 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#include "stdafx.h"
#include "SmoothFloat.h"
SmoothFloat::SmoothFloat()
{
targetValue = 0.0f;
remainingValue = 0.0f;
lastAmount = 0.0f;
}
float SmoothFloat::getNewDeltaValue(float deltaValue, float accelerationAmount)
{
targetValue += deltaValue;
deltaValue = (targetValue - remainingValue) * accelerationAmount;
lastAmount = lastAmount + (deltaValue - lastAmount) * 0.5f;
if ((deltaValue > 0 && deltaValue > lastAmount) || (deltaValue < 0 && deltaValue < lastAmount))
{
deltaValue = lastAmount;
}
remainingValue += deltaValue;
return deltaValue;
}
float SmoothFloat::getTargetValue()
{
return targetValue;
}