@quenty/camerastoryutils 10.13.0 → 10.13.1-canary.651.a0cf24f.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 +11 -0
- package/package.json +3 -3
- package/src/Client/CameraStoryUtils.lua +8 -9
- package/src/Client/RenderCrateUtils.lua +183 -0
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.13.1-canary.651.a0cf24f.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camerastoryutils@10.13.0...@quenty/camerastoryutils@10.13.1-canary.651.a0cf24f.0) (2026-02-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* CameraStoryUtils doesn't require InsertService anymore ([333a1a0](https://github.com/Quenty/NevermoreEngine/commit/333a1a05b7bc756836edb3e7d1574a547e58194c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [10.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camerastoryutils@10.12.7...@quenty/camerastoryutils@10.13.0) (2026-01-13)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/camerastoryutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/camerastoryutils",
|
|
3
|
-
"version": "10.13.0",
|
|
3
|
+
"version": "10.13.1-canary.651.a0cf24f.0",
|
|
4
4
|
"description": "CameraStoryUtils - utility functions for 3D viewport hoarcekat stories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"Quenty"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@quenty/
|
|
32
|
+
"@quenty/blend": "12.28.2-canary.651.a0cf24f.0",
|
|
33
33
|
"@quenty/loader": "10.9.3",
|
|
34
34
|
"@quenty/math": "2.7.5",
|
|
35
35
|
"@quenty/promise": "10.13.0"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "a0cf24f765a387203b8e69099be99afb212260b8"
|
|
41
41
|
}
|
|
@@ -9,10 +9,10 @@ local require = require(script.Parent.loader).load(script)
|
|
|
9
9
|
local RunService = game:GetService("RunService")
|
|
10
10
|
local TextService = game:GetService("TextService")
|
|
11
11
|
|
|
12
|
-
local InsertServiceUtils = require("InsertServiceUtils")
|
|
13
12
|
local Maid = require("Maid")
|
|
14
13
|
local Math = require("Math")
|
|
15
14
|
local Promise = require("Promise")
|
|
15
|
+
local RenderCrateUtils = require("RenderCrateUtils")
|
|
16
16
|
|
|
17
17
|
local CameraStoryUtils = {}
|
|
18
18
|
|
|
@@ -71,17 +71,16 @@ end
|
|
|
71
71
|
]=]
|
|
72
72
|
function CameraStoryUtils.promiseCrate(
|
|
73
73
|
maid: Maid.Maid,
|
|
74
|
-
viewportFrame: ViewportFrame
|
|
75
|
-
properties
|
|
74
|
+
viewportFrame: ViewportFrame?,
|
|
75
|
+
properties: { [string]: any }?
|
|
76
76
|
): Promise.Promise<Instance>
|
|
77
|
-
|
|
78
|
-
maid:GiveTask(model)
|
|
77
|
+
local promise = maid:GivePromise(Promise.new())
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
end
|
|
79
|
+
maid:GiveTask(RenderCrateUtils.crate():Subscribe(function(crate)
|
|
80
|
+
promise:Resolve(crate)
|
|
81
|
+
end))
|
|
84
82
|
|
|
83
|
+
return promise:Then(function(crate)
|
|
85
84
|
if properties then
|
|
86
85
|
for _, item in crate:GetDescendants() do
|
|
87
86
|
if item:IsA("BasePart") then
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
--!strict
|
|
2
|
+
--[=[
|
|
3
|
+
@class RenderCrateUtils
|
|
4
|
+
]=]
|
|
5
|
+
|
|
6
|
+
local require = require(script.Parent.loader).load(script)
|
|
7
|
+
|
|
8
|
+
local Blend = require("Blend")
|
|
9
|
+
|
|
10
|
+
local RenderCrateUtils = {}
|
|
11
|
+
|
|
12
|
+
function RenderCrateUtils.crate()
|
|
13
|
+
local center = Blend.State(nil)
|
|
14
|
+
|
|
15
|
+
return Blend.New "Model" {
|
|
16
|
+
Name = "Wood Crate",
|
|
17
|
+
PrimaryPart = center,
|
|
18
|
+
Blend.New "Part" {
|
|
19
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
20
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
21
|
+
CFrame = CFrame.new(1.7, -0.300135, -1.699984, 0, -1, 0, -1, 0, 0, 0, 0, -1),
|
|
22
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
23
|
+
Material = Enum.Material.WoodPlanks,
|
|
24
|
+
Rotation = Vector3.new(180, 0, 90),
|
|
25
|
+
},
|
|
26
|
+
Blend.New "Part" {
|
|
27
|
+
Size = Vector3.new(2.8, 0.6, 0.6),
|
|
28
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
29
|
+
CFrame = CFrame.new(0, 1.7, -1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1),
|
|
30
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
31
|
+
Material = Enum.Material.WoodPlanks,
|
|
32
|
+
},
|
|
33
|
+
Blend.New "Part" {
|
|
34
|
+
Size = Vector3.new(4, 0.6, 0.6),
|
|
35
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
36
|
+
CFrame = CFrame.new(0, 0.028748, 1.641696, -0.707111, -0.707102, 0, 0.707102, -0.707112, 0, 0, 0, 1),
|
|
37
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
38
|
+
Material = Enum.Material.WoodPlanks,
|
|
39
|
+
Rotation = Vector3.new(0, 0, 135),
|
|
40
|
+
},
|
|
41
|
+
Blend.New "Part" {
|
|
42
|
+
Size = Vector3.new(0.6, 0.6, 4),
|
|
43
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
44
|
+
CFrame = CFrame.new(0, 0.028749, -1.658263, 0, -0.707102, -0.707111, 0, -0.707111, 0.707102, -1, -0, 0),
|
|
45
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
46
|
+
Material = Enum.Material.WoodPlanks,
|
|
47
|
+
Rotation = Vector3.new(-90, -45, 90),
|
|
48
|
+
},
|
|
49
|
+
Blend.New "Part" {
|
|
50
|
+
Size = Vector3.new(4, 0.6, 0.6),
|
|
51
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
52
|
+
CFrame = CFrame.new(
|
|
53
|
+
-1.649982,
|
|
54
|
+
0.02874,
|
|
55
|
+
-0.008285,
|
|
56
|
+
0,
|
|
57
|
+
0,
|
|
58
|
+
-1,
|
|
59
|
+
0.707106,
|
|
60
|
+
-0.707108,
|
|
61
|
+
0,
|
|
62
|
+
-0.707108,
|
|
63
|
+
-0.707106,
|
|
64
|
+
-0
|
|
65
|
+
),
|
|
66
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
67
|
+
Material = Enum.Material.WoodPlanks,
|
|
68
|
+
Rotation = Vector3.new(-135, -90, 0),
|
|
69
|
+
},
|
|
70
|
+
Blend.New "Part" {
|
|
71
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
72
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
73
|
+
CFrame = CFrame.new(0.3, -1.7, 1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1),
|
|
74
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
75
|
+
Material = Enum.Material.WoodPlanks,
|
|
76
|
+
},
|
|
77
|
+
Blend.New "Part" {
|
|
78
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
79
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
80
|
+
CFrame = CFrame.new(-1.7, 1.7, -0.3) * CFrame.Angles(0, math.pi / 2, 0),
|
|
81
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
82
|
+
Material = Enum.Material.WoodPlanks,
|
|
83
|
+
Rotation = Vector3.new(0, 90, 0),
|
|
84
|
+
},
|
|
85
|
+
Blend.New "Part" {
|
|
86
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
87
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
88
|
+
CFrame = CFrame.new(-1.7, -0.3, -1.7) * CFrame.Angles(-math.pi / 2, math.pi / 2, 0),
|
|
89
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
90
|
+
Material = Enum.Material.WoodPlanks,
|
|
91
|
+
Rotation = Vector3.new(-90, 90, 0),
|
|
92
|
+
},
|
|
93
|
+
Blend.New "Part" {
|
|
94
|
+
Size = Vector3.new(2.8, 0.6, 0.6),
|
|
95
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
96
|
+
CFrame = CFrame.new(0.000019, -1.70013, -1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1),
|
|
97
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
98
|
+
Material = Enum.Material.WoodPlanks,
|
|
99
|
+
},
|
|
100
|
+
Blend.New "Part" {
|
|
101
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
102
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
103
|
+
CFrame = CFrame.new(1.7, 0.3, 1.7, 0, -1, 0, 1, 0, 0, 0, 0, 1),
|
|
104
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
105
|
+
Material = Enum.Material.WoodPlanks,
|
|
106
|
+
Rotation = Vector3.new(0, 0, 90),
|
|
107
|
+
},
|
|
108
|
+
Blend.New "Part" {
|
|
109
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
110
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
111
|
+
CFrame = CFrame.new(-0.3, 1.7, 1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1),
|
|
112
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
113
|
+
Material = Enum.Material.WoodPlanks,
|
|
114
|
+
},
|
|
115
|
+
Blend.New "Part" {
|
|
116
|
+
Size = Vector3.new(4, 0.6, 0.6),
|
|
117
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
118
|
+
CFrame = CFrame.new(1.649986, 0.028765, 0, 0, 0, 1, 0.707111, 0.707102, 0, -0.707102, 0.707111, 0),
|
|
119
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
120
|
+
Material = Enum.Material.WoodPlanks,
|
|
121
|
+
Rotation = Vector3.new(45, 90, 0),
|
|
122
|
+
},
|
|
123
|
+
Blend.New "Part" {
|
|
124
|
+
Size = Vector3.new(4, 0.6, 0.6),
|
|
125
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
126
|
+
CFrame = CFrame.new(-0.007957, 1.649938, 0.054213, 0.707106, 0, 0.707108, 0, 1, 0, -0.707108, 0, 0.707106),
|
|
127
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
128
|
+
Material = Enum.Material.WoodPlanks,
|
|
129
|
+
Rotation = Vector3.new(0, 45, 0.001),
|
|
130
|
+
},
|
|
131
|
+
Blend.New "Part" {
|
|
132
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
133
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
134
|
+
CFrame = CFrame.new(-1.699978, -1.700141, 0.299995) * CFrame.Angles(0, math.pi / 2, 0),
|
|
135
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
136
|
+
Material = Enum.Material.WoodPlanks,
|
|
137
|
+
Rotation = Vector3.new(0, 90, 0),
|
|
138
|
+
},
|
|
139
|
+
Blend.New "Part" {
|
|
140
|
+
Size = Vector3.new(2.8, 0.6, 0.6),
|
|
141
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
142
|
+
CFrame = CFrame.new(-1.7, 0, 1.7, 0, 1, 0, -1, 0, 0, 0, 0, 1),
|
|
143
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
144
|
+
Material = Enum.Material.WoodPlanks,
|
|
145
|
+
Rotation = Vector3.new(0, 0, -90),
|
|
146
|
+
},
|
|
147
|
+
Blend.New "Part" {
|
|
148
|
+
Size = Vector3.new(4, 0.6, 0.6),
|
|
149
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
150
|
+
CFrame = CFrame.new(0, -1.671373, -0.008285, 0.707105, 0.707108, -0, 0, 0, 1, 0.707108, -0.707105, -0),
|
|
151
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
152
|
+
Material = Enum.Material.WoodPlanks,
|
|
153
|
+
Rotation = Vector3.new(-90, -0.001, -45),
|
|
154
|
+
},
|
|
155
|
+
Blend.New "Part" {
|
|
156
|
+
Size = Vector3.new(2.8, 0.6, 0.6),
|
|
157
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
158
|
+
CFrame = CFrame.new(1.7, -1.7, 0) * CFrame.Angles(math.pi, math.pi / 2, 0),
|
|
159
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
160
|
+
Material = Enum.Material.WoodPlanks,
|
|
161
|
+
Rotation = Vector3.new(180, 90, 0),
|
|
162
|
+
},
|
|
163
|
+
Blend.New "Part" {
|
|
164
|
+
Name = "Center",
|
|
165
|
+
Size = Vector3.new(3.6, 3.6, 3.6),
|
|
166
|
+
BrickColor = BrickColor.new("Brown"),
|
|
167
|
+
CFrame = CFrame.Angles(0, 0, 0),
|
|
168
|
+
Color = Color3.fromRGB(124, 92, 70),
|
|
169
|
+
Material = Enum.Material.WoodPlanks,
|
|
170
|
+
[Blend.Instance] = center,
|
|
171
|
+
},
|
|
172
|
+
Blend.New "Part" {
|
|
173
|
+
Size = Vector3.new(3.4, 0.6, 0.6),
|
|
174
|
+
BrickColor = BrickColor.new("Reddish brown"),
|
|
175
|
+
CFrame = CFrame.new(1.7, 1.7, -0.3) * CFrame.Angles(0, -math.pi / 2, 0),
|
|
176
|
+
Color = Color3.fromRGB(105, 64, 40),
|
|
177
|
+
Material = Enum.Material.WoodPlanks,
|
|
178
|
+
Rotation = Vector3.new(0, -90, 0),
|
|
179
|
+
},
|
|
180
|
+
}
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
return RenderCrateUtils
|