Browse Source

Fixing collision with arc rotate camera

I can explain the problem if needed. In General - two references became
one, which drove the system mad. mad mad mad!
Raanan Weber 9 years ago
parent
commit
d58929e9b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cameras/babylon.arcRotateCamera.ts

+ 1 - 1
src/Cameras/babylon.arcRotateCamera.ts

@@ -392,7 +392,7 @@
             if (this.position.equals(position)) {
             if (this.position.equals(position)) {
                 return;
                 return;
             }
             }
-            this.position = position;
+            this.position.copyFrom(position);
 
 
             this.rebuildAnglesAndRadius();
             this.rebuildAnglesAndRadius();
         }
         }