From 91b1aea8e9b89056ba42b49dfed008e4da61a038 Mon Sep 17 00:00:00 2001 From: yuliang <398780299@qq.com> Date: Wed, 18 Jun 2025 16:35:06 +0800 Subject: [PATCH] CLX --- src/example/example1.js | 14 +++++++------- src/modules/cl2/Cl23dObject.ts | 6 +++--- src/modules/cl2/Cl2Entity.ts | 2 +- src/modules/clx/Clx3dObject.ts | 6 +++--- src/modules/clx/ClxEntity.ts | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/example/example1.js b/src/example/example1.js index fc978cb..84bc2ee 100644 --- a/src/example/example1.js +++ b/src/example/example1.js @@ -205,27 +205,27 @@ export default { }, { id: '6Vu3dX1V7Si0ISWIiCkoEh', t: 'gstore', v: true, strokeWidth: 0.1, - tf: [[1.5, 0.1, 0.63], [0, 90, 0], [1, 0.01, 1]], + tf: [[1.5, 0, 0.63], [0, 90, 0], [1, 0, 1]], dt: { in: [], out: [], center: [], storeWidth: 1.1 } }, { id: '592UY0EMScbwIyQqgs8aAs', t: 'gstore', v: true, strokeWidth: 0.1, - tf: [[3.9, 0.1, 0.63], [0, 90, 0], [1, 0.01, 1]], + tf: [[3.9, 0, 0.63], [0, 90, 0], [1, 0, 1]], dt: { in: [], out: [], center: [] } }, { id: '38TYyVWMGLf8OogQMIiSOz', t: 'gstore', v: true, strokeWidth: 0.1, - tf: [[7.1, 0.1, 2.865], [0, 0, 0], [1, 0.01, 1]], + tf: [[7.1, 0, 2.865], [0, 0, 0], [1, 0, 1]], dt: { in: [], out: [], center: [] } }, { id: '1hAaZ1xtvukZowAKeWAcqs', t: 'gstore', v: true, strokeWidth: 0.1, - tf: [[7.1, 0.1, 4.35], [0, 0, 0], [1, 0.01, 1]], + tf: [[7.1, 0, 4.35], [0, 0, 0], [1, 0, 1]], dt: { in: [], out: [], center: [] } }, { id: '28GxDYUqDwZc2WsOgMU2wi', t: 'gstore', v: true, strokeWidth: 0.1, - tf: [[7.1, 0.1, 6.75], [0, 90, 0], [1, 0.01, 1]], + tf: [[7.1, 0, 6.75], [0, 90, 0], [1, 0, 1]], dt: { in: [], out: [], center: [] } }, { @@ -325,12 +325,12 @@ export default { }, { id: 'ptr1', t: 'cl2', v: true, - tf: [[5.65, 0.1, 2.13], [0, -90, 0], [1, 1, 1]], + tf: [[5.65, 0, 2.13], [0, -90, 0], [1, 1, 1]], dt: { in: [], out: [], center: [], ptrWidth: 1.5, ptrDepth: 1.5, ptrHeight: 1.98 } }, { id: 'clx1', t: 'clx', v: true, - tf: [[1.5, 0.1, 2.13], [0, 0, 0], [1, 1, 1]], + tf: [[1.5, 0, 2.13], [0, 0, 0], [1, 1, 1]], dt: { in: [], out: [], center: [], clxWidth: 1.65, clxDepth: 1.65, clxHeight: 3.393 } }, { diff --git a/src/modules/cl2/Cl23dObject.ts b/src/modules/cl2/Cl23dObject.ts index 6a19419..3911c50 100644 --- a/src/modules/cl2/Cl23dObject.ts +++ b/src/modules/cl2/Cl23dObject.ts @@ -368,12 +368,12 @@ export default class Cl23dObject extends THREE.Object3D { if (pz > -1) { for (let i = 0; i < children.length; i++) { const child = children[i] - child.position.y = -0.05 + bh - a.y + child.position.y = bh - a.y } - } else if (a.y < 0.1 ) { + } else if (a.y < 0.11 ) { for (let i = 0; i < children.length; i++) { const child = children[i] - child.position.y = -0.05 + 0.15 - a.y + child.position.y = 0.11 - a.y } } } diff --git a/src/modules/cl2/Cl2Entity.ts b/src/modules/cl2/Cl2Entity.ts index a41f331..4f5b634 100644 --- a/src/modules/cl2/Cl2Entity.ts +++ b/src/modules/cl2/Cl2Entity.ts @@ -54,7 +54,7 @@ export default class Cl2Entity extends BaseEntity { this.isLoading = true // 将物品拾取到机械臂上 const mesh = this.pickupItem(item) - mesh.position.set(0, -0.05, -0.15) + mesh.position.set(0, 0, -0.15) mesh.rotation.set(0, THREE.MathUtils.degToRad(90), 0) ptrForkMesh.add(mesh) })) diff --git a/src/modules/clx/Clx3dObject.ts b/src/modules/clx/Clx3dObject.ts index 7294a33..deeaee2 100644 --- a/src/modules/clx/Clx3dObject.ts +++ b/src/modules/clx/Clx3dObject.ts @@ -646,12 +646,12 @@ export default class Clx3dObject extends THREE.Object3D { if (a.z > -1) { for (let i = 0; i < children.length; i++) { const child = children[i] - child.position.y = -0.05 + bh - a.y + child.position.y = bh - a.y } - } else if (a.y < 0.1 ) { + } else if (a.y < 0.11 ) { for (let i = 0; i < children.length; i++) { const child = children[i] - child.position.y = -0.05 + 0.15 - a.y + child.position.y = 0.11 - a.y } } } diff --git a/src/modules/clx/ClxEntity.ts b/src/modules/clx/ClxEntity.ts index 8d6f09f..013e28f 100644 --- a/src/modules/clx/ClxEntity.ts +++ b/src/modules/clx/ClxEntity.ts @@ -50,7 +50,7 @@ export default class ClxEntity extends BaseEntity { this.isLoading = true // 将物品拾取到机械臂上 const mesh = this.pickupItem(item) - mesh.position.set(0, -0.05, -0.2) + mesh.position.set(0, 0, -0.2) mesh.rotation.set(0, THREE.MathUtils.degToRad(90), 0) ptrForkMesh.add(mesh) }))