Nikolay Suslov 4 éve
szülő
commit
b7dc5ae016

+ 1 - 17
public/defaults/proxy/aframe/ascene.js

@@ -1129,24 +1129,8 @@ this.getDefaultXRCostume = function(){
                     interval: 10,
                     objects: ".hit"
                 }
-            },
-           "myRayCaster": {
-            "extends": "proxy/aframe/aentity.vwf",
-            "properties": {},
-            "children": {
-                "raycaster": {
-                    "extends": "proxy/aframe/raycasterComponent.vwf",
-                    "type": "component",
-                    "properties": {
-                        recursive: false,
-                        interval: 100,
-                        far: 20,
-                        objects: ".intersectable",
-                        showLine: false
-                    }
-                }
             }
-        }
+         
         }
     
     }

+ 14 - 1
public/defaults/proxy/aframe/xrcontroller.js

@@ -39,7 +39,20 @@ this.createController = function (pos, modelSrc) {
         }
     }
 
-
+    let myRayCaster = {
+                "extends": "proxy/aframe/raycasterComponent.vwf",
+                "type": "component",
+                "properties": {
+                    recursive: false,
+                    interval: 0,
+                    far: 10,
+                    objects: ".intersectable",
+                    showLine: false
+                }
+            }
+        
+    
+    this.children.create( "raycaster", myRayCaster );        
     this.children.create( "interpolation", interpolation );
     this.children.create("xrnode", newNode, function(child){
         if(child) {