bill 1 年之前
父节点
当前提交
8a72144f12
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/sdk/association.ts

+ 8 - 8
src/sdk/association.ts

@@ -57,23 +57,23 @@ const associationModels = (sdk: SDK) => {
           const data = transform;
           if (transform.rotation) {
             data.rotation = {
-              x: round(transform.rotation.x, 3),
-              y: round(transform.rotation.y, 3),
-              z: round(transform.rotation.z, 3)
+              x: round(transform.rotation.x, 5),
+              y: round(transform.rotation.y, 5),
+              z: round(transform.rotation.z, 5)
             }
           }
           if (transform.position) {
             data.position = {
-              x: round(transform.position.x, 3),
-              y: round(transform.position.y, 3),
-              z: round(transform.position.z, 3)
+              x: round(transform.position.x, 5),
+              y: round(transform.position.y, 5),
+              z: round(transform.position.z, 5)
             }
           }
           if (transform.bottom) {
-            data.bottom = round(transform.bottom)
+            data.bottom = round(transform.bottom,5)
           }
           if (transform.scale) {
-            data.scale = round(transform.scale)
+            data.scale = round(transform.scale,5)
           }
           nextTick(() => selfUpdate = false)
         })