From 051a3e7b480b20507d899ea1c3e432ae784282c3 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Mon, 26 Nov 2018 14:55:19 -0800 Subject: [PATCH] reduce collision threshold check distance to -1.65, will decrease number of unnecessary bbox checks --- src/components/beat.js | 2 +- src/index.html | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/beat.js b/src/components/beat.js index 94b380b..f2f689a 100644 --- a/src/components/beat.js +++ b/src/components/beat.js @@ -1,7 +1,7 @@ import {BEAT_WARMUP_OFFSET, BEAT_WARMUP_SPEED, BEAT_WARMUP_TIME} from '../constants/beat'; const auxObj3D = new THREE.Object3D(); -const collisionZThreshold = -4; +const collisionZThreshold = -1.65; const BEAT_WARMUP_ROTATION_CHANGE = Math.PI / 5; const BEAT_WARMUP_ROTATION_OFFSET = 0.4; const BEAT_WARMUP_ROTATION_TIME = 750; diff --git a/src/index.html b/src/index.html index ca33bff..518dd05 100644 --- a/src/index.html +++ b/src/index.html @@ -138,7 +138,6 @@ {% macro saber (hand, otherHand, bladeColor, beamColor) %}