@quenty/geometryutils 2.7.0 → 3.0.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
+ # [3.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/geometryutils@2.7.0...@quenty/geometryutils@3.0.0) (2023-10-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * CIrlceUtils handles edge case properly ([1103664](https://github.com/Quenty/NevermoreEngine/commit/1103664a23a1fad747d440e4e09476e626413d94))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/geometryutils@2.6.0...@quenty/geometryutils@2.7.0) (2023-08-23)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/geometryutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/geometryutils",
3
- "version": "2.7.0",
3
+ "version": "3.0.0",
4
4
  "description": "Utility functions involving 3D and 2D geometry",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@quenty/draw": "^4.3.0",
32
- "@quenty/loader": "^6.3.0"
32
+ "@quenty/loader": "^7.0.0"
33
33
  },
34
- "gitHead": "2547e660a0333034a5b20ddd6b23e343bc01f7c6"
34
+ "gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
35
35
  }
@@ -16,7 +16,7 @@ local CircleUtils = {}
16
16
  function CircleUtils.updatePositionToSmallestDistOnCircle(position, target, circumference)
17
17
  assert(target >= 0 and target <= circumference, "Target must be between 0 and circumference")
18
18
 
19
- if math.abs(position - target) <= math.pi then
19
+ if math.abs(position - target) <= circumference/2 then
20
20
  -- No need to force spring update
21
21
  return position
22
22
  end