Skip to content

Commit f11bafe

Browse files
authored
Merge pull request #530 from Quenty/users/unrooot/camera-controls-strength
fix: Apply strength to camera controls
2 parents d15e3e5 + e8a15bc commit f11bafe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/camera/src/Client/Controls/CameraControls.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function CameraControls:BeginDrag(beginInputObject)
175175
end))
176176

177177
if self._rotatedCamera.ClassName == "SmoothRotatedCamera" then
178-
self._rotVelocityTracker = self:_getVelocityTracker(0.05, Vector2.zero)
178+
self._rotVelocityTracker = self:_getVelocityTracker(self._strength or 0.05, Vector2.zero)
179179
end
180180

181181
self._maid._dragMaid = maid
@@ -354,4 +354,4 @@ function CameraControls:Destroy()
354354
setmetatable(self, nil)
355355
end
356356

357-
return CameraControls
357+
return CameraControls

0 commit comments

Comments
 (0)