Skip to content

Commit

Permalink
(0.647.0.6470717)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoMoose authored and github-actions[bot] committed Oct 17, 2024
1 parent 29d8652 commit 3a3f2eb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/PlayerModulePatched/CameraModule/OrbitalCamera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion src/PlayerModuleUnpatched/CameraModule/OrbitalCamera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/VersionInfo.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.645.0.6450665",
"guid": "version-880ce149439340c1"
"version": "0.647.0.6470717",
"guid": "version-2220a78ed1774256"
}
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 3a3f2eb

Please sign in to comment.