人生啊人生 2 hafta önce
ebeveyn
işleme
2e1a38016a

+ 2 - 0
src/components/ThreeWorldEventQingXiCheAndQv/ThreeWorldEventMainQingXiCheAndQv.vue

@@ -17,6 +17,7 @@ import { WindowEvent } from "../WindowQingXiCheAndQv/js/WindowEvent.js";
 import { WindowVideoRemoveColorStore } from "@/components/WindowQingXiCheAndQv/store/WindowVideoRemoveColorStore.js";
 import { QingXiCheAndQvComClipPlaneMeshEvent } from "./js/QingXiCheAndQvComClipPlaneMeshEvent.js";
 import { QingXiCheAdnQvCarEventStep } from "./js/QingXiCheAdnQvCarEventStep.js";
+import { QingXiCheAndQvProcessEventStore } from "./event/store/QingXiCheAndQvProcessEventStore.js";
 
 
 /**
@@ -142,6 +143,7 @@ const callbackLoadEndEvent = (json) => {
 
     QingXiCheAndQvCarEvent.find().objThreeWorldEventMain = QingXiCheAndQvThreeWorldEventMain.find();
     QingXiCheAndQvCarEventClick.find().objThreeWorldEventMain = QingXiCheAndQvThreeWorldEventMain.find();
+    QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore = QingXiCheAndQvProcessEventStore();
     QingXiCheAndQvComClipPlaneMeshEvent.find().objThreeWorldEventMain = QingXiCheAndQvThreeWorldEventMain.find();
 
     QingXiCheAndQvComClipPlaneMeshEvent.find().updateConfig();

+ 4 - 1
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvCarEventClick.js

@@ -44,6 +44,9 @@ export class QingXiCheAndQvCarEventClick {
         // 是否开启每帧判断的逻辑
         this.renderEventBool = false;
 
+        // 记录 QingXiCheAndQvProcessEventStore
+        this.QingXiCheAndQvProcessEventStore = null;
+
 
     }
 
@@ -396,7 +399,7 @@ export class QingXiCheAndQvCarEventClick {
 
                     // 记录当前的视角,解决人物,切换到新的视角的时候,会出现一个很长的过度问题
                     objThreeWorldEventMain.coordinateMoveSphereFollowUpdate();
-                    
+
                 }
                 
                 break;

+ 49 - 1
src/components/ThreeWorldEventQingXiCheAndQv/js/QingXiCheAndQvThreeWorldEvent.js

@@ -187,12 +187,60 @@ export class QingXiCheAndQvThreeWorldEvent {
         //     // pickResult
         //     objMesh, objPosition, getNormal
         // );
+
+        if (thisClass.experimentMeshBool(pickResult) == true) {
+
+
+
+        }
         
-        QingXiCheAndQvCarEventClick.find().main(pickResult);
+        // QingXiCheAndQvCarEventClick.find().main(pickResult);
         
     }
 
 
+    /**
+     * 判断是否是点击物体的范围内
+     * pickResult       点击的具体坐标,物体等信息
+     * 
+     */
+    experimentMeshBool = function(pickResult) {
+
+        var thisClass = this;
+        var objScene = this.objScene;
+        var objIframe = this.objIframe;
+        var BABYLON = this.BABYLON;
+        
+        // console.log("experimentMeshBool =====>", pickResult, QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore);
+        var objMesh = pickResult.pickedMesh;
+
+        if (typeof objMesh.id != 'string') {
+            return false;
+        }
+        
+        let meshId = objMesh.id;
+        
+        for (let i = 0; i < QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore.obj.list.length; i++ ) {
+            let thisList = QingXiCheAndQvCarEventClick.find().QingXiCheAndQvProcessEventStore.obj.list[i];
+            // console.log("experimentMeshBool thisList =====>", thisList);
+            if (typeof thisList.correctAnswerMesh == 'object' ) {
+                for (let key in thisList.correctAnswerMesh) {
+                    
+                    let json = thisList.correctAnswerMesh[key];
+                    console.log("experimentMeshBool key =====>", key, json, meshId);
+
+                }
+
+            }
+
+        }
+        
+        return false;
+
+    }
+
+
+
     /**
      * 鼠标按住并且拖拽事件
      * pickResult       返回的鼠标参数