@quenty/camera 9.12.0 → 9.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [9.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camera@9.12.0...@quenty/camera@9.13.0) (2023-05-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
12
+
13
+
14
+
15
+
16
+
6
17
  # [9.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camera@9.11.0...@quenty/camera@9.12.0) (2023-05-08)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/camera
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/camera",
3
- "version": "9.12.0",
3
+ "version": "9.13.0",
4
4
  "description": "Quenty's camera system for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,19 +29,19 @@
29
29
  "@quenty/baseobject": "^6.2.1",
30
30
  "@quenty/cframeutils": "^5.2.0",
31
31
  "@quenty/cubicspline": "^6.2.1",
32
- "@quenty/inputobjectutils": "^4.0.0",
32
+ "@quenty/inputobjectutils": "^4.1.0",
33
33
  "@quenty/loader": "^6.2.1",
34
34
  "@quenty/maid": "^2.5.0",
35
35
  "@quenty/math": "^2.3.0",
36
- "@quenty/qframe": "^6.6.0",
37
- "@quenty/servicebag": "^6.6.1",
38
- "@quenty/spring": "^6.2.1"
36
+ "@quenty/qframe": "^6.7.0",
37
+ "@quenty/servicebag": "^6.7.0",
38
+ "@quenty/spring": "^6.3.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@quenty/camerastoryutils": "^6.5.0"
41
+ "@quenty/camerastoryutils": "^6.6.0"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "2ad8cea7dd3ad79a39afd7d7b785b489b90553fd"
46
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
47
47
  }
@@ -175,7 +175,7 @@ function CameraControls:BeginDrag(beginInputObject)
175
175
  end))
176
176
 
177
177
  if self._rotatedCamera.ClassName == "SmoothRotatedCamera" then
178
- self._rotVelocityTracker = self:_getVelocityTracker(0.05, Vector2.new())
178
+ self._rotVelocityTracker = self:_getVelocityTracker(0.05, Vector2.zero)
179
179
  end
180
180
 
181
181
  self._maid._dragMaid = maid
@@ -326,7 +326,7 @@ function CameraControls:_handleGamepadRotateStart()
326
326
  local maid = Maid.new()
327
327
 
328
328
  if self._rotatedCamera.ClassName == "SmoothRotatedCamera" then
329
- self._rotVelocityTracker = self:_getVelocityTracker(0.05, Vector2.new())
329
+ self._rotVelocityTracker = self:_getVelocityTracker(0.05, Vector2.zero)
330
330
  end
331
331
 
332
332
  maid:GiveTask(RunService.Stepped:Connect(function()
@@ -54,7 +54,7 @@ end
54
54
  ]=]
55
55
  function GamepadRotateModel:GetThumbstickDeltaAngle()
56
56
  if not self._lastInputObject then
57
- return Vector2.new()
57
+ return Vector2.zero
58
58
  end
59
59
 
60
60
  return Vector2.new(self._rampVelocityX.p, self._rampVelocityY.p)
@@ -113,7 +113,7 @@ function FadeBetweenCamera:__index(index)
113
113
  if animating then
114
114
  return self._spring.Velocity
115
115
  else
116
- return Vector3.new(0, 0, 0)
116
+ return Vector3.zero
117
117
  end
118
118
  elseif index == "HasReachedTarget" then
119
119
  local animating = SpringUtils.animating(self._spring)
@@ -121,7 +121,7 @@ function FadeBetweenCamera3:__index(index)
121
121
  if animating then
122
122
  return self._spring.Velocity
123
123
  else
124
- return Vector3.new(0, 0, 0)
124
+ return Vector3.zero
125
125
  end
126
126
  elseif index == "HasReachedTarget" then
127
127
  local animating = SpringUtils.animating(self._spring)
@@ -16,7 +16,7 @@ ImpulseCamera.ClassName = "ImpulseCamera"
16
16
 
17
17
  function ImpulseCamera.new()
18
18
  local self = setmetatable({
19
- _spring = Spring.new(Vector3.new(0, 0, 0))
19
+ _spring = Spring.new(Vector3.zero)
20
20
  }, ImpulseCamera)
21
21
 
22
22
  self._spring.Damper = 0.5
@@ -24,7 +24,7 @@ LagPointCamera._OriginCamera = nil
24
24
  function LagPointCamera.new(originCamera, focusCamera)
25
25
  local self = setmetatable({}, LagPointCamera)
26
26
 
27
- self.FocusSpring = Spring.new(Vector3.new())
27
+ self.FocusSpring = Spring.new(Vector3.zero)
28
28
  self.OriginCamera = originCamera or error("Must have originCamera")
29
29
  self.FocusCamera = focusCamera or error("Must have focusCamera")
30
30
  self.Speed = 10
@@ -41,7 +41,7 @@ function LagPointCamera:__newindex(index, value)
41
41
  rawset(self, "_" .. index, value)
42
42
  self.FocusSpring.Target = self.FocusCamera.CameraState.Position
43
43
  self.FocusSpring.Position = self.FocusSpring.Target
44
- self.FocusSpring.Velocity = Vector3.new(0, 0, 0)
44
+ self.FocusSpring.Velocity = Vector3.zero
45
45
  elseif index == "OriginCamera" then
46
46
  rawset(self, "_" .. index, value)
47
47
  elseif index == "LastFocusUpdate" or index == "FocusSpring" then
@@ -17,7 +17,7 @@ SmoothPositionCamera.ClassName = "SmoothPositionCamera"
17
17
  function SmoothPositionCamera.new(baseCamera)
18
18
  local self = setmetatable({}, SmoothPositionCamera)
19
19
 
20
- self.Spring = Spring.new(Vector3.new())
20
+ self.Spring = Spring.new(Vector3.zero)
21
21
  self.BaseCamera = baseCamera or error("Must have BaseCamera")
22
22
  self.Speed = 10
23
23
 
@@ -33,7 +33,7 @@ function SmoothPositionCamera:__newindex(index, value)
33
33
  rawset(self, "_" .. index, value)
34
34
  self.Spring.Target = self.BaseCamera.CameraState.Position
35
35
  self.Spring.Position = self.Spring.Target
36
- self.Spring.Velocity = Vector3.new(0, 0, 0)
36
+ self.Spring.Velocity = Vector3.zero
37
37
  elseif index == "_lastUpdateTime" or index == "Spring" then
38
38
  rawset(self, index, value)
39
39
  elseif index == "Speed" or index == "Damper" or index == "Velocity" or index == "Position" then