增加涡流修改器
This commit is contained in:
1 parent
3f2699a946
commit
5f3a4a33fe
10 files changed
+136
-7
No files matched your search
+5
-1
@@ -28,7 +28,7 @@
|
||||
<script setup lang="ts">
|
||||
import { type BonePreview } from './stage/stageTypes'
|
||||
import { drawAxis } from './stage/axisGuides'
|
||||
import { drawOrigin, drawShapeRange, drawForceField, drawAttraction } from './stage/emitterGuides'
|
||||
import { drawOrigin, drawShapeRange, drawForceField, drawVortex, drawAttraction } from './stage/emitterGuides'
|
||||
import { drawBoneFollowTargets, drawGizmo, drawCollisionBodies, drawPaths } from './stage/sceneGuides'
|
||||
import { appendStateBones, drawBones } from './stage/boneGuides'
|
||||
|
||||
@@ -84,6 +84,7 @@ let boneFollowTargetGfx: Graphics | null = null
|
||||
let boneGfx: Graphics | null = null
|
||||
let shapeGfx: Graphics | null = null
|
||||
let forceFieldGfx: Graphics | null = null
|
||||
let vortexGfx: Graphics | null = null
|
||||
let attractionGfx: Graphics | null = null
|
||||
let collisionGfx: Graphics | null = null
|
||||
let pathGfx: Graphics | null = null
|
||||
@@ -130,6 +131,8 @@ function createLayers() {
|
||||
world.addChild(shapeGfx)
|
||||
forceFieldGfx = new Graphics() // 选中系统的全局力场范围
|
||||
world.addChild(forceFieldGfx)
|
||||
vortexGfx = new Graphics() // 选中系统的全局漩涡范围
|
||||
world.addChild(vortexGfx)
|
||||
attractionGfx = new Graphics() // 选中系统的全局吸附范围
|
||||
world.addChild(attractionGfx)
|
||||
collisionGfx = new Graphics()
|
||||
@@ -435,6 +438,7 @@ function loop() {
|
||||
drawOrigin(store, emitterPreviewTransform, originGfx)
|
||||
drawShapeRange(store, emitterPreviewTransform, shapeGfx)
|
||||
drawForceField(store, forceFieldGfx)
|
||||
drawVortex(store, vortexGfx)
|
||||
drawAttraction(store, attractionGfx)
|
||||
drawGizmo(activeTool, interactions.selectedTransformTarget.bind(interactions), gizmoGfx)
|
||||
drawBones(collected, store, boneGfx)
|
||||
|
||||
Reference in new issue
Block a user