From 9f4289ae1b164391e4a44b81e3d790fe2088bed9 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Tue, 7 Jun 2016 13:31:42 -0700 Subject: [PATCH] add down velocity to shelfy things --- .../Home/kineticObjects/wrapper.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/unpublishedScripts/DomainContent/Home/kineticObjects/wrapper.js b/unpublishedScripts/DomainContent/Home/kineticObjects/wrapper.js index 5ddea20560..0dee32d05c 100644 --- a/unpublishedScripts/DomainContent/Home/kineticObjects/wrapper.js +++ b/unpublishedScripts/DomainContent/Home/kineticObjects/wrapper.js @@ -254,6 +254,7 @@ StuffOnShelves = function(spawnLocation, spawnRotation) { print('CREATE STUFF ON SHELVES'); var created = []; + function create() { var success = Clipboard.importEntities(STUFF_ON_SHELVES_URL); if (success === true) { @@ -268,6 +269,8 @@ StuffOnShelves = function(spawnLocation, spawnRotation) { }) }; + + create(); this.cleanup = cleanup; @@ -300,11 +303,26 @@ Bricabrac = function(spawnLocation, spawnRotation) { print('HOME CREATE BRICABRAC'); var created = []; + function addVelocityDown() { + print('HOME ADDING DOWN VELOCITY TO DRESSING ROOM ITEMS') + created.forEach(function(obj) { + Entities.editEntity(obj, { + velocity: { + x: 0, + y: -0.1, + z: 0 + } + }); + }) + } + function create() { var success = Clipboard.importEntities(BRICABRAC_URL); if (success === true) { created = Clipboard.pasteEntities(spawnLocation) print('created ' + created); + addVelocityDown(); + } };