@quenty/particleengine 13.18.4-canary.559.9f38947.0 → 13.19.0-canary.0a5db80.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,25 +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
|
-
|
|
6
|
+
# [13.19.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@13.18.2...@quenty/particleengine@13.19.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
### Features
|
|
15
15
|
|
|
16
|
-
* Add even more types ([
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [13.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@13.18.2...@quenty/particleengine@13.18.3) (2025-04-10)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @quenty/particleengine
|
|
16
|
+
* Add even more types ([0a5db80](https://github.com/Quenty/NevermoreEngine/commit/0a5db8004684dc3e76fd5944599a22602d48cfa9))
|
|
25
17
|
|
|
26
18
|
|
|
27
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/particleengine",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.19.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Adds GUI based particle engine to Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"AxisAngles"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/loader": "10.
|
|
30
|
-
"@quenty/remoting": "12.
|
|
31
|
-
"@quenty/table": "3.
|
|
29
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
30
|
+
"@quenty/remoting": "12.19.0-canary.0a5db80.0",
|
|
31
|
+
"@quenty/table": "3.8.0-canary.0a5db80.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
37
37
|
}
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
local require = require(script.Parent.loader).load(script)
|
|
10
10
|
|
|
11
11
|
local Players = game:GetService("Players")
|
|
12
|
-
local RunService = game:GetService("RunService")
|
|
13
12
|
local Workspace = game:GetService("Workspace")
|
|
13
|
+
local RunService = game:GetService("RunService")
|
|
14
14
|
|
|
15
|
-
local ParticleEngineConstants = require("ParticleEngineConstants")
|
|
16
15
|
local PromiseGetRemoteEvent = require("PromiseGetRemoteEvent")
|
|
16
|
+
local ParticleEngineConstants = require("ParticleEngineConstants")
|
|
17
17
|
local ServiceBag = require("ServiceBag")
|
|
18
18
|
|
|
19
19
|
local ParticleEngineClient = {}
|
|
@@ -268,12 +268,7 @@ end
|
|
|
268
268
|
|
|
269
269
|
-- @param f frame
|
|
270
270
|
-- @param cameraInverse The inverse camera cframe
|
|
271
|
-
function ParticleEngineClient:_particleRender(
|
|
272
|
-
cameraPosition: Vector3,
|
|
273
|
-
cameraInverse: CFrame,
|
|
274
|
-
frame: Frame,
|
|
275
|
-
particle: Particle
|
|
276
|
-
)
|
|
271
|
+
function ParticleEngineClient:_particleRender(cameraPosition: Vector3, cameraInverse: CFrame, frame: Frame, particle: Particle)
|
|
277
272
|
local rp: Vector3 = cameraInverse * particle.Position
|
|
278
273
|
local lsp: Vector2? = particle._lastScreenPosition
|
|
279
274
|
|
|
@@ -315,10 +310,10 @@ function ParticleEngineClient:_particleRender(
|
|
|
315
310
|
end
|
|
316
311
|
|
|
317
312
|
frame.Position = UDim2.new(0, (px + lsp.X - sx) / 2, 0, (py + lsp.Y - sy) / 2)
|
|
318
|
-
frame.Size = UDim2.new(0, sx, 0,
|
|
319
|
-
frame.Rotation = 90
|
|
313
|
+
frame.Size = UDim2.new(0, sx, 0,sy)
|
|
314
|
+
frame.Rotation = 90+math.atan2(rppy,rppx)*57.295779513082
|
|
320
315
|
frame.BackgroundColor3 = particle.Color
|
|
321
|
-
frame.BackgroundTransparency = bgt
|
|
316
|
+
frame.BackgroundTransparency = bgt+(1-bgt)*(1 - preSizeY/sy)
|
|
322
317
|
|
|
323
318
|
return true
|
|
324
319
|
end
|
|
@@ -326,8 +321,8 @@ end
|
|
|
326
321
|
function ParticleEngineClient:_updateScreenInfo(camera: Camera)
|
|
327
322
|
self._screenSizeX = self._screen.AbsoluteSize.x
|
|
328
323
|
self._screenSizeY = self._screen.AbsoluteSize.y
|
|
329
|
-
self._planeSizeY = 2
|
|
330
|
-
self._planeSizeX = self._planeSizeY
|
|
324
|
+
self._planeSizeY = 2*math.tan(camera.FieldOfView*0.0087266462599716)
|
|
325
|
+
self._planeSizeX = self._planeSizeY*self._screenSizeX/self._screenSizeY
|
|
331
326
|
end
|
|
332
327
|
|
|
333
|
-
return ParticleEngineClient
|
|
328
|
+
return ParticleEngineClient
|
|
@@ -41,11 +41,11 @@ function ParticleEngineServer:ParticleNew(p)
|
|
|
41
41
|
|
|
42
42
|
p.Position = p.Position or error("No Position")
|
|
43
43
|
p.Velocity = p.Velocity or Vector3.zero
|
|
44
|
-
p.Size = p.Size or Vector2.new(0.2,
|
|
45
|
-
p.Bloom = p.Bloom or Vector2.new(0,
|
|
44
|
+
p.Size = p.Size or Vector2.new(0.2,0.2)
|
|
45
|
+
p.Bloom = p.Bloom or Vector2.new(0,0)
|
|
46
46
|
p.Gravity = p.Gravity or Vector3.zero
|
|
47
47
|
p.LifeTime = p.LifeTime
|
|
48
|
-
p.Color = p.Color or Color3.new(1,
|
|
48
|
+
p.Color = p.Color or Color3.new(1,1,1)
|
|
49
49
|
p.Transparency = p.Transparency or 0.5
|
|
50
50
|
|
|
51
51
|
self._remoteEvent:FireAllClients(p)
|
|
@@ -53,4 +53,4 @@ function ParticleEngineServer:ParticleNew(p)
|
|
|
53
53
|
return p
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
return ParticleEngineServer
|
|
56
|
+
return ParticleEngineServer
|