zhouenguang 3 years ago
parent
commit
8b125983c0
3 changed files with 4 additions and 4 deletions
  1. 2 2
      modules/CharactorManager.js
  2. 1 1
      modules/index.js
  3. 1 1
      modules/utils/settings.js

+ 2 - 2
modules/CharactorManager.js

@@ -110,12 +110,12 @@ export default class CharactorManager {
             roomId: settings.roomId,
             userId: settings.userId,
             s_location: {
-                x: startPoint.x,
+                x: -startPoint.x,
                 y: startPoint.y,
                 z: startPoint.z,
             },
             e_location: {
-                x: endPoint.x,
+                x: -endPoint.x,
                 y: endPoint.y,
                 z: endPoint.z,
             }

+ 1 - 1
modules/index.js

@@ -183,7 +183,7 @@ export default class App {
                 // 获得行走视频
                 let path = this.currentPoints.map( (point, index) => { 
                     return { 
-                        point: new BABYLON.Vector3(point.location.x, 0, point.location.z), 
+                        point: new BABYLON.Vector3(-point.location.x, 0, point.location.z), 
                         video: index == 1 && common.createVideoElement0(url)
                     } 
                 })

+ 1 - 1
modules/utils/settings.js

@@ -1,6 +1,6 @@
 export default {
     video: {
-        frameRate: 30,  // 帧/s
+        frameRate: 15,  // 帧/s
         width: 1728, //1920,
         height: 720, //1080
     },