FMath::FInterpTo() Not Implemented?

Hi everyone, I was looking for a function that I could use in Tick to interpolate a float like character health from its current value to its maximum value. Looking at the API documentation in 4.6 it seemed like FMath::FInterpTo could be a good candidate to use. In my project (4.6.1) I was not able to get this function to work though.

I tried to use the visual studio feature to view this functions definition, and instead it goes to the functions declaration, it doesn’t seem as if it has a defined definition.

UnrealMathUtility.h

/** Interpolate float from Current to Target. Scaled by distance to Target, so it has a strong start speed and ease out. */
	static CORE_API float FInterpTo( float Current, float Target, float DeltaTime, float InterpSpeed );

When I tried to see other math functions that were used in the ShooterGame example, for instance FMath::Lerp() the function seems to display correctly and is also defined in the UnrealMathUtility.h.

My questions are:
(1) Should I be having this problem? I am using downloaded library builds of the engine, not github source.
(2) Is there another way to accomplish the changing the value of a float over time using existing math functions that I may not be seeing?

Update, I tried the test differently and this function seems to be working unless there is something I don’t understand with the way the building process works. Earlier I basically created a custom function that was similar to the FInterptTo (source listed in the API) and it too was working.

I would still like to know why visual studio didn’t take me to the function definition. My current guess is that it has to do with the function already being compiled. When I searched the engine folder I found the associated UnrealMathUtility.h file, but did not find “Runtime/Core/Private/Math/UnrealMath.cpp”

You cannot view source code unless you have the github source. If you want to look up any of the source code you can search the documentation here in the API. For instance, this is the Finterpto code. Happy hunting.

Thank you BaderThanBad.

Not a problem, please mark as closed.