Rotate camera for 60 FPS, not 6 FPS.
This commit is contained in:
parent
07ac5baeba
commit
7ae0fc051d
|
|
@ -87,7 +87,7 @@ local function rotateCameraTowardsGoal(dt)
|
||||||
if isFinite(angleBetween) then
|
if isFinite(angleBetween) then
|
||||||
local abs = math.abs(angleBetween)
|
local abs = math.abs(angleBetween)
|
||||||
local sign = math.sign(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)
|
local cfLocal = focus:toObjectSpace(cf)
|
||||||
camera.CFrame = focus * CFrame.Angles(0, -rotation * sign, 0) * cfLocal
|
camera.CFrame = focus * CFrame.Angles(0, -rotation * sign, 0) * cfLocal
|
||||||
|
|
@ -306,4 +306,4 @@ pcall(function ()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue