You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Renaming FVector ClampSize and SafeNormal functions for clarity
Used DEPRECATED Macro to keep old names around in case I've missed anything [CL 2370785 by Matthew Griffin in Main branch]
This commit is contained in:
committed by
UnrealBot
parent
28d846aa7f
commit
f1c4513760
@@ -1164,7 +1164,7 @@ public:
|
||||
{
|
||||
double SampleTime = FPlatformTime::Seconds();
|
||||
float DeltaTime = (float)(SampleTime - LastMouseSampleTime);
|
||||
FVector2D MouseDirection = MouseDelta.SafeNormal();
|
||||
FVector2D MouseDirection = MouseDelta.GetSafeNormal();
|
||||
float MouseAngle = FMath::Lerp(LastMouseAngle, FMath::Atan2(-MouseDirection.Y, MouseDirection.X), FMath::Min<float>(10.f * DeltaTime, 1.f)); // lerp over 100ms
|
||||
LastMouseAngle = MouseAngle;
|
||||
LastMouseSampleTime = SampleTime;
|
||||
|
||||
Reference in New Issue
Block a user