diff --git a/src/PlayerModulePatched/CameraModule/OrbitalCamera.lua b/src/PlayerModulePatched/CameraModule/OrbitalCamera.lua index f1d0acc..180e645 100644 --- a/src/PlayerModulePatched/CameraModule/OrbitalCamera.lua +++ b/src/PlayerModulePatched/CameraModule/OrbitalCamera.lua @@ -4,6 +4,9 @@ 2018 Camera Update - AllYourBlox --]] +local CommonUtils = script.Parent.Parent:WaitForChild("CommonUtils") +local FlagUtil = require(CommonUtils:WaitForChild("FlagUtil")) + -- Local private variables and constants local UNIT_Z = Vector3.new(0,0,1) local X1_Y0_Z1 = Vector3.new(1,0,1) --Note: not a unit vector, used for projecting onto XZ plane @@ -33,6 +36,8 @@ local CameraInput = require(script.Parent:WaitForChild("CameraInput")) --[[ Services ]]-- local PlayersService = game:GetService('Players') +local FFlagUserFixOrbitalCam = FlagUtil.getUserFlag("UserFixOrbitalCam") + --[[ The Module ]]-- local BaseCamera = require(script.Parent:WaitForChild("BaseCamera")) local OrbitalCamera = setmetatable({}, BaseCamera) @@ -217,7 +222,7 @@ end function OrbitalCamera:Update(dt: number): (CFrame, CFrame) local now = tick() local timeDelta = (now - self.lastUpdate) - local userPanningTheCamera = CameraInput.getRotation() ~= Vector2.new() + local userPanningTheCamera = CameraInput.getRotation(if FFlagUserFixOrbitalCam then dt else nil) ~= Vector2.new() local camera = workspace.CurrentCamera local newCameraCFrame = camera.CFrame local newCameraFocus = camera.Focus diff --git a/src/PlayerModuleUnpatched/CameraModule/OrbitalCamera.lua b/src/PlayerModuleUnpatched/CameraModule/OrbitalCamera.lua index f1d0acc..180e645 100644 --- a/src/PlayerModuleUnpatched/CameraModule/OrbitalCamera.lua +++ b/src/PlayerModuleUnpatched/CameraModule/OrbitalCamera.lua @@ -4,6 +4,9 @@ 2018 Camera Update - AllYourBlox --]] +local CommonUtils = script.Parent.Parent:WaitForChild("CommonUtils") +local FlagUtil = require(CommonUtils:WaitForChild("FlagUtil")) + -- Local private variables and constants local UNIT_Z = Vector3.new(0,0,1) local X1_Y0_Z1 = Vector3.new(1,0,1) --Note: not a unit vector, used for projecting onto XZ plane @@ -33,6 +36,8 @@ local CameraInput = require(script.Parent:WaitForChild("CameraInput")) --[[ Services ]]-- local PlayersService = game:GetService('Players') +local FFlagUserFixOrbitalCam = FlagUtil.getUserFlag("UserFixOrbitalCam") + --[[ The Module ]]-- local BaseCamera = require(script.Parent:WaitForChild("BaseCamera")) local OrbitalCamera = setmetatable({}, BaseCamera) @@ -217,7 +222,7 @@ end function OrbitalCamera:Update(dt: number): (CFrame, CFrame) local now = tick() local timeDelta = (now - self.lastUpdate) - local userPanningTheCamera = CameraInput.getRotation() ~= Vector2.new() + local userPanningTheCamera = CameraInput.getRotation(if FFlagUserFixOrbitalCam then dt else nil) ~= Vector2.new() local camera = workspace.CurrentCamera local newCameraCFrame = camera.CFrame local newCameraFocus = camera.Focus diff --git a/src/VersionInfo.json b/src/VersionInfo.json index 7f4d2dc..0d64c2a 100644 --- a/src/VersionInfo.json +++ b/src/VersionInfo.json @@ -1,4 +1,4 @@ { - "version": "0.645.0.6450665", - "guid": "version-880ce149439340c1" + "version": "0.647.0.6470717", + "guid": "version-2220a78ed1774256" } \ No newline at end of file diff --git a/wally.toml b/wally.toml index c9ff48f..f6ce31e 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "upliftgames/playermodule" -version = "645.0.6450665" +version = "647.0.6470717" registry = "https://github.com/UpliftGames/wally-index" realm = "shared"