Rotate camera for 60 FPS, not 6 FPS.

This commit is contained in:
Max G 2020-04-30 03:09:55 -05:00 committed by GitHub
parent 07ac5baeba
commit 7ae0fc051d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ local function rotateCameraTowardsGoal(dt)
if isFinite(angleBetween) then
local abs = math.abs(angleBetween)
local sign = math.sign(angleBetween)
local rotation = math.min(dt * 6, abs)
local rotation = math.min(dt * .6, abs)
local cfLocal = focus:toObjectSpace(cf)
camera.CFrame = focus * CFrame.Angles(0, -rotation * sign, 0) * cfLocal
@ -306,4 +306,4 @@ pcall(function ()
end
end)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------