From 6d78a805254c6fa74e246338880cc68a95e22501 Mon Sep 17 00:00:00 2001 From: Diego Marcos Date: Thu, 6 Dec 2018 11:04:47 -0800 Subject: [PATCH] Slow down flying cuts --- src/components/beat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/beat.js b/src/components/beat.js index d4ce4cf..c6ca36b 100644 --- a/src/components/beat.js +++ b/src/components/beat.js @@ -808,14 +808,14 @@ AFRAME.registerComponent('beat', { } rightCutNormal.copy(this.rightCutPlane.normal) - .multiplyScalar((this.data.speed / 2) * (timeDelta / 500)); + .multiplyScalar((this.data.speed / 4) * (timeDelta / 500)); rightCutNormal.y = 0; // Y handled by gravity. this.partRightEl.object3D.position.add(rightCutNormal); this.partRightEl.object3D.setRotationFromAxisAngle(this.rotationAxis, rightRotation); rightRotation = rightRotation >= 2 * Math.PI ? 0 : rightRotation + rotationStep; leftCutNormal.copy(this.leftCutPlane.normal) - .multiplyScalar((this.data.speed / 2) * (timeDelta / 500)); + .multiplyScalar((this.data.speed / 4) * (timeDelta / 500)); leftCutNormal.y = 0; // Y handled by gravity. this.partLeftEl.object3D.position.add(leftCutNormal); this.partLeftEl.object3D.setRotationFromAxisAngle(this.rotationAxis, leftRotation);