|
@@ -155,19 +155,21 @@ class doubleWindow {
|
|
|
initAnimation() {
|
|
|
const meshArr01: THREE.Object3D[] = [];
|
|
|
const meshArr02: THREE.Object3D[] = [];
|
|
|
- const fcObj = this.group.getObjectByName('sdFc')?.getObjectByName('FengChuang_2')?.getObjectByName('FengChuang');
|
|
|
- const leftObjNames = ['FCshanye03', 'FCshanye04'];
|
|
|
- const rightObjNames = ['FCshanye05', 'FCshanye06'];
|
|
|
+ const fc = this.group.getObjectByName('sdFc')?.getObjectByName('FengChuang_2_ShuangDao');
|
|
|
+ const fcObj1 = fc?.getObjectByName('FengChuang_1_1');
|
|
|
+ const fcObj2 = fc?.getObjectByName('FengChuang_2_1');
|
|
|
+ const frontObjNames = ['FengChuang_1_2', 'FengChuang_1_3', 'FengChuang_1_4', 'FengChuang_1_5'];
|
|
|
+ const backObjNames = ['FengChuang_2_2', 'FengChuang_2_3', 'FengChuang_2_4', 'FengChuang_2_5'];
|
|
|
debugger;
|
|
|
- leftObjNames.filter((name) => {
|
|
|
- const obj = fcObj?.getObjectByName(name);
|
|
|
+ frontObjNames.filter((name) => {
|
|
|
+ const obj = fcObj1?.getObjectByName(name);
|
|
|
if (obj) {
|
|
|
obj.rotateOnAxis(new THREE.Vector3(0, 1, 0), 0);
|
|
|
meshArr01.push(obj);
|
|
|
}
|
|
|
});
|
|
|
- rightObjNames.filter((name) => {
|
|
|
- const obj = fcObj?.getObjectByName(name);
|
|
|
+ backObjNames.filter((name) => {
|
|
|
+ const obj = fcObj2?.getObjectByName(name);
|
|
|
if (obj) {
|
|
|
obj.rotateOnAxis(new THREE.Vector3(0, 1, 0), 0);
|
|
|
meshArr02.push(obj);
|
|
@@ -261,7 +263,7 @@ class doubleWindow {
|
|
|
|
|
|
mountedThree(playerDom) {
|
|
|
return new Promise((resolve) => {
|
|
|
- this.model.setGLTFModel('sdFc-d').then((gltf) => {
|
|
|
+ this.model.setGLTFModel('sdFc-dm').then((gltf) => {
|
|
|
const fcModal = gltf[0];
|
|
|
fcModal.name = 'sdFc';
|
|
|
this.group?.add(fcModal);
|