@quenty/trajectory 2.7.1 → 2.7.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
+ ## [2.7.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/trajectory@2.7.1...@quenty/trajectory@2.7.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
  ## [2.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/trajectory@2.7.0...@quenty/trajectory@2.7.1) (2025-03-21)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/trajectory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/trajectory",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Utility function for estimating low and high arcs of projectiles. Solves for bullet drop given",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,8 +29,8 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@quenty/draw": "^7.8.1",
33
- "@quenty/loader": "^10.8.0"
32
+ "@quenty/draw": "^7.8.2",
33
+ "@quenty/loader": "^10.8.1"
34
34
  },
35
- "gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
35
+ "gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
36
36
  }
@@ -1,3 +1,4 @@
1
+ --!strict
1
2
  --[=[
2
3
  @class TrajectoryDrawUtils
3
4
  ]=]
@@ -15,7 +16,7 @@ local TrajectoryDrawUtils = {}
15
16
  --[=[
16
17
  Draws a trajectory out for debugging purposes
17
18
  ]=]
18
- function TrajectoryDrawUtils.draw(velocity: Vector3, origin: Vector3, target: Vector3, accel: Vector3)
19
+ function TrajectoryDrawUtils.draw(velocity: Vector3, origin: Vector3, target: Vector3, accel: Vector3): ()
19
20
  Draw.point(origin, ORIGIN_COLOR)
20
21
  Draw.point(target, FINISH_COLOR)
21
22
 
@@ -48,7 +48,7 @@ local function trajectory(
48
48
  local v0 = Vector3.new(v0x, ty > g * tx2 / (2 * v2) and v0y or -v0y, v0z)
49
49
  local v1 = Vector3.new(v1x, v1y, v1z)
50
50
 
51
- return v0, v1
51
+ return v0, v1, nil
52
52
  else
53
53
  return nil, nil, Vector3.new(rx, (tx2 ^ 0.5), rz).Unit * initialVelocity
54
54
  end