@quenty/particleengine 13.19.0-canary.ae8d76d.0 → 13.19.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,7 +3,7 @@
|
|
|
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
|
-
# [13.19.0
|
|
6
|
+
# [13.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@13.18.3...@quenty/particleengine@13.19.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
@@ -13,7 +13,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
13
13
|
|
|
14
14
|
### Features
|
|
15
15
|
|
|
16
|
-
* Add even more types ([
|
|
16
|
+
* Add even more types ([b31717d](https://github.com/Quenty/NevermoreEngine/commit/b31717d8c9f7620c457f5018a2affa760a65334a))
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/particleengine",
|
|
3
|
-
"version": "13.19.0
|
|
3
|
+
"version": "13.19.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.19.0
|
|
31
|
-
"@quenty/table": "3.
|
|
29
|
+
"@quenty/loader": "^10.9.0",
|
|
30
|
+
"@quenty/remoting": "^12.19.0",
|
|
31
|
+
"@quenty/table": "^3.8.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
|
|
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 Workspace = game:GetService("Workspace")
|
|
13
12
|
local RunService = game:GetService("RunService")
|
|
13
|
+
local Workspace = game:GetService("Workspace")
|
|
14
14
|
|
|
15
|
-
local PromiseGetRemoteEvent = require("PromiseGetRemoteEvent")
|
|
16
15
|
local ParticleEngineConstants = require("ParticleEngineConstants")
|
|
16
|
+
local PromiseGetRemoteEvent = require("PromiseGetRemoteEvent")
|
|
17
17
|
local ServiceBag = require("ServiceBag")
|
|
18
18
|
|
|
19
19
|
local ParticleEngineClient = {}
|
|
@@ -268,7 +268,12 @@ end
|
|
|
268
268
|
|
|
269
269
|
-- @param f frame
|
|
270
270
|
-- @param cameraInverse The inverse camera cframe
|
|
271
|
-
function ParticleEngineClient:_particleRender(
|
|
271
|
+
function ParticleEngineClient:_particleRender(
|
|
272
|
+
cameraPosition: Vector3,
|
|
273
|
+
cameraInverse: CFrame,
|
|
274
|
+
frame: Frame,
|
|
275
|
+
particle: Particle
|
|
276
|
+
)
|
|
272
277
|
local rp: Vector3 = cameraInverse * particle.Position
|
|
273
278
|
local lsp: Vector2? = particle._lastScreenPosition
|
|
274
279
|
|
|
@@ -310,10 +315,10 @@ function ParticleEngineClient:_particleRender(cameraPosition: Vector3, cameraInv
|
|
|
310
315
|
end
|
|
311
316
|
|
|
312
317
|
frame.Position = UDim2.new(0, (px + lsp.X - sx) / 2, 0, (py + lsp.Y - sy) / 2)
|
|
313
|
-
frame.Size = UDim2.new(0, sx, 0,sy)
|
|
314
|
-
frame.Rotation = 90+math.atan2(rppy,rppx)*57.295779513082
|
|
318
|
+
frame.Size = UDim2.new(0, sx, 0, sy)
|
|
319
|
+
frame.Rotation = 90 + math.atan2(rppy, rppx) * 57.295779513082
|
|
315
320
|
frame.BackgroundColor3 = particle.Color
|
|
316
|
-
frame.BackgroundTransparency = bgt+(1-bgt)*(1 - preSizeY/sy)
|
|
321
|
+
frame.BackgroundTransparency = bgt + (1 - bgt) * (1 - preSizeY / sy)
|
|
317
322
|
|
|
318
323
|
return true
|
|
319
324
|
end
|
|
@@ -321,8 +326,8 @@ end
|
|
|
321
326
|
function ParticleEngineClient:_updateScreenInfo(camera: Camera)
|
|
322
327
|
self._screenSizeX = self._screen.AbsoluteSize.x
|
|
323
328
|
self._screenSizeY = self._screen.AbsoluteSize.y
|
|
324
|
-
self._planeSizeY = 2*math.tan(camera.FieldOfView*0.0087266462599716)
|
|
325
|
-
self._planeSizeX = self._planeSizeY*self._screenSizeX/self._screenSizeY
|
|
329
|
+
self._planeSizeY = 2 * math.tan(camera.FieldOfView * 0.0087266462599716)
|
|
330
|
+
self._planeSizeX = self._planeSizeY * self._screenSizeX / self._screenSizeY
|
|
326
331
|
end
|
|
327
332
|
|
|
328
|
-
return ParticleEngineClient
|
|
333
|
+
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,0.2)
|
|
45
|
-
p.Bloom = p.Bloom or Vector2.new(0,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,1,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
|