@quenty/camera 9.19.0 → 9.20.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,14 @@
|
|
|
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
|
+
# [9.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camera@9.19.0...@quenty/camera@9.20.0) (2023-07-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/camera
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [9.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camera@9.18.0...@quenty/camera@9.19.0) (2023-07-28)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/camera",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.20.0",
|
|
4
4
|
"description": "Quenty's camera system for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"@quenty/loader": "^6.2.1",
|
|
34
34
|
"@quenty/maid": "^2.5.0",
|
|
35
35
|
"@quenty/math": "^2.4.0",
|
|
36
|
-
"@quenty/qframe": "^6.
|
|
36
|
+
"@quenty/qframe": "^6.10.0",
|
|
37
37
|
"@quenty/servicebag": "^6.8.0",
|
|
38
38
|
"@quenty/spring": "^6.3.0",
|
|
39
39
|
"@quenty/vector3utils": "^6.6.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@quenty/camerastoryutils": "^6.
|
|
42
|
+
"@quenty/camerastoryutils": "^6.9.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "539b6bcf1266fb18e143059d08381654cca200bd"
|
|
48
48
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
local require = require(script.Parent.loader).load(script)
|
|
17
17
|
|
|
18
18
|
local SummedCamera = require("SummedCamera")
|
|
19
|
+
local Vector3Utils = require("Vector3Utils")
|
|
19
20
|
|
|
20
21
|
local OverrideDefaultCameraToo = {}
|
|
21
22
|
OverrideDefaultCameraToo.ClassName = "OverrideDefaultCameraToo"
|
|
@@ -55,7 +56,12 @@ function OverrideDefaultCameraToo:__index(index)
|
|
|
55
56
|
|
|
56
57
|
local predicate = self.Predicate
|
|
57
58
|
if not predicate or predicate(result) then
|
|
58
|
-
|
|
59
|
+
local angle = math.abs(Vector3Utils.angleBetweenVectors(result.CFrame:VectorToWorldSpace(Vector3.new(0, 0, -1)), Vector3.new(0, 1, 0)))
|
|
60
|
+
|
|
61
|
+
-- If the camera is straight up and down then Roblox breaks
|
|
62
|
+
if angle >= math.rad(0.1) and angle <= math.rad(179.9) then
|
|
63
|
+
self.DefaultCamera:SetRobloxCFrame(result.CFrame)
|
|
64
|
+
end
|
|
59
65
|
end
|
|
60
66
|
|
|
61
67
|
return result
|