From 6e46e3d3b67a7a592d4f652133b6aa0e0d2d3600 Mon Sep 17 00:00:00 2001 From: ericrius1 Date: Fri, 11 Sep 2015 11:24:53 -0700 Subject: [PATCH] cleanup for paintcan --- examples/entityScripts/sprayPaintCan.js | 2 +- examples/sprayPaintSpawner.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/entityScripts/sprayPaintCan.js b/examples/entityScripts/sprayPaintCan.js index 9ba6d75600..8a5829c441 100644 --- a/examples/entityScripts/sprayPaintCan.js +++ b/examples/entityScripts/sprayPaintCan.js @@ -29,7 +29,7 @@ var timeSinceLastMoved = 0; var RESET_TIME_THRESHOLD = 5; - var DISTANCE_FROM_HOME_THRESHOLD = .5; + var DISTANCE_FROM_HOME_THRESHOLD = 0.5; var HOME_POSITION = { x: 549.12, y: 495.555, diff --git a/examples/sprayPaintSpawner.js b/examples/sprayPaintSpawner.js index 991ba25064..77b74e6520 100644 --- a/examples/sprayPaintSpawner.js +++ b/examples/sprayPaintSpawner.js @@ -9,9 +9,7 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html //Just temporarily using my own bucket here so others can test the entity. Once PR is tested and merged, then the entity script will appear in its proper place in S3, and I wil switch it -var scriptURL = "https://hifi-public.s3.amazonaws.com/eric/scripts/sprayPaintCan.js?=v1" + Math.random(); -// var scriptURL = "https://hifi-public.s3.amazonaws.com/scripts/entityScripts/sprayPaintCan.js"; -// var scriptURL = "file:////Users/ericlevin/hifi/examples/entityScripts/sprayPaintCan.js?=v1" + Math.random(); +var scriptURL = "https://hifi-public.s3.amazonaws.com/eric/scripts/sprayPaintCan.js?=v1"; var modelURL = "https://hifi-public.s3.amazonaws.com/eric/models/paintcan.fbx"; var center = Vec3.sum(MyAvatar.position, Vec3.multiply(1, Quat.getFront(Camera.getOrientation())));