@quenty/spring 6.3.0-canary.352.3411e11.0 → 6.3.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,7 +3,18 @@
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
- # [6.3.0-canary.352.3411e11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/spring@6.2.0...@quenty/spring@6.3.0-canary.352.3411e11.0) (2023-04-07)
6
+ # [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/spring@6.2.1...@quenty/spring@6.3.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
+
17
+ ## [6.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/spring@6.2.0...@quenty/spring@6.2.1) (2023-04-07)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/spring
9
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/spring",
3
- "version": "6.3.0-canary.352.3411e11.0",
3
+ "version": "6.3.0",
4
4
  "description": "Spring implementation for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@quenty/loader": "6.3.0-canary.352.3411e11.0"
32
+ "@quenty/loader": "^6.2.1"
33
33
  },
34
- "gitHead": "3411e116f2d48453a016d9dc15eab6ea64fb1bc4"
34
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
35
35
  }
@@ -8,13 +8,13 @@
8
8
  local RunService = game:GetService("RunService")
9
9
  local UserInputService = game:GetService("UserInputService")
10
10
 
11
- local spring = Spring.new(Vector3.new(0, 0, 0))
11
+ local spring = Spring.new(Vector3.zero)
12
12
 
13
13
  RunService.RenderStepped:Connect(function()
14
14
  if UserInputService:IsKeyDown(Enum.KeyCode.W) then
15
15
  spring.Target = Vector3.new(0, 0, 1)
16
16
  else
17
- spring.Target = Vector3.new(0, 0, 0)
17
+ spring.Target = Vector3.zero
18
18
  end
19
19
 
20
20
  print(spring.Position) -- A smoothed out version of the input keycode W
@@ -36,10 +36,10 @@ local Spring = {}
36
36
  local linearSpring = Spring.new(0)
37
37
 
38
38
  -- Vector2 spring
39
- local vector2Spring = Spring.new(Vector2.new(0, 0))
39
+ local vector2Spring = Spring.new(Vector2.zero)
40
40
 
41
41
  -- Vector3 spring
42
- local vector3Spring = Spring.new(Vector3.new(0, 0, 0))
42
+ local vector3Spring = Spring.new(Vector3.zero)
43
43
  ```
44
44
 
45
45
  @param initial T -- The initial parameter is a number or Vector3 (anything with * number and addition/subtraction).