bill 1 ano atrás
pai
commit
8a72144f12
1 arquivos alterados com 8 adições e 8 exclusões
  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)
         })