预设修改
This commit is contained in:
1 parent
4f2c980bac
commit
abb4ac4acc
4 files changed
+19
-19
No files matched your search
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"format": "SpineParticle.EditorConfig",
|
"format": "SpineParticle.EditorConfig",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"savedAt": "2026-09-14T09:27:43.502Z",
|
"savedAt": "2026-09-22T09:10:07.796Z",
|
||||||
"editor": {
|
"editor": {
|
||||||
"viewScale": 0.25667509294538904,
|
"viewScale": 0.5066311211773208,
|
||||||
"viewX": -108.03375430502649,
|
"viewX": -21.45847112068003,
|
||||||
"viewY": 58.10811303956338
|
"viewY": 229.1173536037184
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"backgroundX": 0,
|
"backgroundX": 0,
|
||||||
@@ -462,7 +462,7 @@
|
|||||||
"depth": 7
|
"depth": 7
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"assetVersion": 5,
|
"assetVersion": 6,
|
||||||
"status": "ready",
|
"status": "ready",
|
||||||
"error": ""
|
"error": ""
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"name": "多力场",
|
|
||||||
"file": "多力场.json"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "雷电序列帧",
|
"name": "雷电序列帧",
|
||||||
"file": "雷电序列帧.json"
|
"file": "雷电序列帧.json"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "力场拖尾",
|
||||||
|
"file": "力场拖尾.json"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "粒子扫过",
|
"name": "粒子扫过",
|
||||||
"file": "粒子扫过.json"
|
"file": "粒子扫过.json"
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"file": "长条方块.json"
|
"file": "长条方块.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spine",
|
"name": "SpineBoy",
|
||||||
"file": "spine.json"
|
"file": "SpineBoy.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"format": "SpineParticle.EditorConfig",
|
"format": "SpineParticle.EditorConfig",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"savedAt": "2026-09-22T08:54:10.890Z",
|
"savedAt": "2026-09-22T09:13:58.532Z",
|
||||||
"editor": {
|
"editor": {
|
||||||
"viewScale": 0.8928571428571433,
|
"viewScale": 1.4049280000000024,
|
||||||
"viewX": 27.26238807717155,
|
"viewX": 4.425329339374599,
|
||||||
"viewY": -5.489695295473268
|
"viewY": -0.7737096708491435
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"backgroundX": 0,
|
"backgroundX": 0,
|
||||||
@@ -399,7 +399,7 @@
|
|||||||
"y": 1
|
"y": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"boneCount": 2,
|
"boneCount": 6,
|
||||||
"trailRatio": 100,
|
"trailRatio": 100,
|
||||||
"lengthMode": "fixed",
|
"lengthMode": "fixed",
|
||||||
"length": 100,
|
"length": 100,
|
||||||
@@ -488,7 +488,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"trailGridRows": 2,
|
"trailGridRows": 2,
|
||||||
"trailGridCols": 2,
|
"trailGridCols": 12,
|
||||||
"collision": false,
|
"collision": false,
|
||||||
"collisionColliderIds": [],
|
"collisionColliderIds": [],
|
||||||
"pathFollow": false,
|
"pathFollow": false,
|
||||||
@@ -39,7 +39,7 @@ export class ObjectInteractions {
|
|||||||
const sys = this.ctx.store.systems.find((item) => item.id === this.ctx.store.activeId)
|
const sys = this.ctx.store.systems.find((item) => item.id === this.ctx.store.activeId)
|
||||||
if (sys?.visible === false) return false
|
if (sys?.visible === false) return false
|
||||||
const cfg = sys?.config
|
const cfg = sys?.config
|
||||||
if (!cfg?.forceField || cfg.forceRadius <= 0) return false
|
if (!cfg?.forceField || !cfg.showForceFieldShape || cfg.forceRadius <= 0) return false
|
||||||
const startPointer = pointerToWorldMath(this.ctx, e.clientX, e.clientY)
|
const startPointer = pointerToWorldMath(this.ctx, e.clientX, e.clientY)
|
||||||
const distance = Math.hypot(startPointer.x - cfg.forceCenterX, startPointer.y - cfg.forceCenterY)
|
const distance = Math.hypot(startPointer.x - cfg.forceCenterX, startPointer.y - cfg.forceCenterY)
|
||||||
if (distance > cfg.forceRadius) return false
|
if (distance > cfg.forceRadius) return false
|
||||||
@@ -69,7 +69,7 @@ export class ObjectInteractions {
|
|||||||
const sys = this.ctx.store.systems.find((item) => item.id === this.ctx.store.activeId)
|
const sys = this.ctx.store.systems.find((item) => item.id === this.ctx.store.activeId)
|
||||||
if (sys?.visible === false) return false
|
if (sys?.visible === false) return false
|
||||||
const cfg = sys?.config
|
const cfg = sys?.config
|
||||||
if (!cfg?.attraction) return false
|
if (!cfg?.attraction || !cfg.showAttractionShape) return false
|
||||||
const startPointer = pointerToWorldMath(this.ctx, e.clientX, e.clientY)
|
const startPointer = pointerToWorldMath(this.ctx, e.clientX, e.clientY)
|
||||||
const hitRadius = Math.max(cfg.attractionRadius, 12 / Math.max(0.0001, this.ctx.store.editor.viewScale))
|
const hitRadius = Math.max(cfg.attractionRadius, 12 / Math.max(0.0001, this.ctx.store.editor.viewScale))
|
||||||
const distance = Math.hypot(startPointer.x - cfg.attractionCenterX, startPointer.y - cfg.attractionCenterY)
|
const distance = Math.hypot(startPointer.x - cfg.attractionCenterX, startPointer.y - cfg.attractionCenterY)
|
||||||
|
|||||||
Reference in new issue
Block a user