@quenty/getpercentexposedutils 10.8.1 → 10.8.2

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
+ ## [10.8.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/getpercentexposedutils@10.8.1...@quenty/getpercentexposedutils@10.8.2) (2025-04-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [10.8.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/getpercentexposedutils@10.8.0...@quenty/getpercentexposedutils@10.8.1) (2025-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/getpercentexposedutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/getpercentexposedutils",
3
- "version": "10.8.1",
3
+ "version": "10.8.2",
4
4
  "description": "Identify parts that are potentially exposed to an explosion using a random vector raycasting",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,11 +26,11 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/loader": "^10.8.0",
30
- "@quenty/vector3utils": "^10.8.1"
29
+ "@quenty/loader": "^10.8.1",
30
+ "@quenty/vector3utils": "^10.8.2"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
35
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
36
36
  }
@@ -1,3 +1,4 @@
1
+ --!strict
1
2
  --[=[
2
3
  Identify parts that are potentially exposed to an explosion using a random vector raycasting
3
4
  @class GetPercentExposedUtils
@@ -27,7 +28,7 @@ GetPercentExposedUtils.RAY_COUNT = 314
27
28
  @param raycaster Raycaster?
28
29
  @return { [BasePart]: number } -- A table mapping parts to to percent exposure
29
30
  ]=]
30
- function GetPercentExposedUtils.search(point, radius, raycaster)
31
+ function GetPercentExposedUtils.search(point: Vector3, radius: number, raycaster): { [BasePart]: number }
31
32
  local hits = {}
32
33
  local totalHits = 0
33
34
 
@@ -52,7 +53,7 @@ function GetPercentExposedUtils.search(point, radius, raycaster)
52
53
  return hits
53
54
  end
54
55
 
55
- for part, count in pairs(hits) do
56
+ for part, count in hits do
56
57
  hits[part] = count / GetPercentExposedUtils.RAY_COUNT
57
58
  end
58
59