@quenty/inputobjectutils 4.0.0 → 4.1.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
+ # [4.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputobjectutils@4.0.0...@quenty/inputobjectutils@4.1.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
  # [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputobjectutils@3.0.0...@quenty/inputobjectutils@4.0.0) (2022-09-27)
7
18
 
8
19
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/inputobjectutils",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Provides utility functions involving input objects",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "cbbe2a3e91f0d1e337bb33652b4e32bec685bb76"
30
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
31
31
  }
@@ -19,7 +19,7 @@ local InputObjectRayUtils = {}
19
19
  ]=]
20
20
  function InputObjectRayUtils.cameraRayFromInputObject(inputObject, distance, offset, camera)
21
21
  assert(inputObject, "Bad inputObject")
22
- offset = offset or Vector3.new()
22
+ offset = offset or Vector3.zero
23
23
 
24
24
  local position = inputObject.Position
25
25
  return InputObjectRayUtils.cameraRayFromScreenPosition(Vector2.new(position.x + offset.x, position.y + offset.y), distance, camera)
@@ -35,7 +35,7 @@ end
35
35
  ]=]
36
36
  function InputObjectRayUtils.cameraRayFromMouse(mouse, distance, offset, camera)
37
37
  assert(mouse, "Bad mouse")
38
- offset = offset or Vector3.new(0, 0, 0)
38
+ offset = offset or Vector3.zero
39
39
 
40
40
  return InputObjectRayUtils.cameraRayFromScreenPosition(
41
41
  Vector2.new(mouse.x + offset.x, mouse.y + offset.y),