From 690f67c9d99d0bf2a83588dda415e9d3c9cd8088 Mon Sep 17 00:00:00 2001 From: r3tk0n Date: Thu, 24 Jan 2019 14:21:18 -0800 Subject: [PATCH] Add variable for teleport deadzone on y-axis. --- scripts/system/libraries/controllerDispatcherUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/system/libraries/controllerDispatcherUtils.js b/scripts/system/libraries/controllerDispatcherUtils.js index 221af07474..27e637ab63 100644 --- a/scripts/system/libraries/controllerDispatcherUtils.js +++ b/scripts/system/libraries/controllerDispatcherUtils.js @@ -103,6 +103,8 @@ TEAR_AWAY_DISTANCE = 0.15; // ungrab an entity if its bounding-box moves this fa TEAR_AWAY_COUNT = 2; // multiply by TEAR_AWAY_CHECK_TIME to know how long the item must be away TEAR_AWAY_CHECK_TIME = 0.15; // seconds, duration between checks +TELEPORT_DEADZONE = 0.15; + NEAR_GRAB_DISTANCE = 0.14; // Grab an entity if its bounding box is within this distance. // Smaller than TEAR_AWAY_DISTANCE for hysteresis.