From b9a83be4d33f8ddc1d1e4dacde414467acce0c2f Mon Sep 17 00:00:00 2001 From: James Pollack Date: Tue, 29 Sep 2015 14:31:13 -0700 Subject: [PATCH] cleanup --- examples/toys/basketball_hoop/createHoop.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/toys/basketball_hoop/createHoop.js b/examples/toys/basketball_hoop/createHoop.js index 26fb7347d1..3887e0b421 100644 --- a/examples/toys/basketball_hoop/createHoop.js +++ b/examples/toys/basketball_hoop/createHoop.js @@ -10,26 +10,19 @@ // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// /*global MyAvatar, Entities, AnimationCache, SoundCache, Scene, Camera, Overlays, HMD, AvatarList, AvatarManager, Controller, UndoStack, Window, Account, GlobalServices, Script, ScriptDiscoveryService, LODManager, Menu, Vec3, Quat, AudioDevice, Paths, Clipboard, Settings, XMLHttpRequest, randFloat, randInt */ -Script.include("../../utilities.js"); -Script.include("../../libraries/utils.js"); var hoopURL = "http://hifi-public.s3.amazonaws.com/models/basketball_hoop/basketball_hoop.fbx"; var hoopCollisionHullURL = "http://hifi-public.s3.amazonaws.com/models/basketball_hoop/basketball_hoop_collision_hull.obj"; - -var DISTANCE_IN_FRONT_OF_ME = 1.0; - var hoopStartPosition = Vec3.sum(MyAvatar.position, Vec3.multiplyQbyV(MyAvatar.orientation, { x: 0, y: 0.0, - z: -DISTANCE_IN_FRONT_OF_ME * 2 + z: -2 })); - var hoop = Entities.addEntity({ type: "Model", modelURL: hoopURL, @@ -46,4 +39,5 @@ var hoop = Entities.addEntity({ z: 3.79 }, compoundShapeURL: hoopCollisionHullURL -}); \ No newline at end of file +}); +