"use strict"; var SPRING_ENTITY_SCRIPT_URL = "https://hifi-content.s3.amazonaws.com/lincoln/ballSpring.js"; function getPosition(pos) { return Vec3.sum(MyAvatar.position, pos) }; var position = { "x": 0.99825286865234375, "y": 0.03036003112792969, "z": 0.2906951904296875 }; var props = { "clientOnly": 0, "collisionless": 1, "created": "2016-10-12T00:17:10Z", "description": "Drum Set Base", "dimensions": { "x": 3.0173230171203613, "y": 1.8752377033233643, "z": 1.8151965141296387 }, "ignoreForCollisions": 1, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/drums.fbx", "name": "Drum Set", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(position), "queryAACube": { "scale": 3.9894478321075439, "x": -1.014651894569397, "y": -1.9084447622299194, "z": -1.694339394569397 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "static-mesh", "type": "Model" }; var drumKit = Entities.addEntity(props); var pos1 = { // "x": 1.8945198059082031, // "y": 0.48812555555555555, // "z": 0.08203887939453125 "x": 1.8542060852050781, "y": 0.7531764984130859, "z": 0.4654388427734375 }; var prop1 = { "clientOnly": 0, "created": "2016-10-12T17:34:49Z", "description": "Drum Set Cymbal 2", "dimensions": { "x": 0.51723790168762207, "y": 0.14577460289001465, "z": 0.52338039875030518 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/cymbal2-head.fbx", "name": "RX7-CRASH", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos1), "queryAACube": { "scale": 0.75014150142669678, "x": 1.4445016384124756, "y": 0.45307451486587524, "z": 0.076146900653839111 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID1 = Entities.addEntity(prop1); Entities.addAction("spring", springID1, { targetPosition: (prop1.position), linearTimeScale: 0.09, targetRotation: prop1.rotation, angularTimeScale: 0.001 }); var pos2 = { "x": 0.29206466674804688, "y": 0.8225555555555, "z": 0.4069671630859375 }; var prop2 = { "clientOnly": 0, "created": "2016-10-12T21:37:18Z", "description": "Drum Set T3", "dimensions": { "x": 0.65370982885360718, "y": 0.31387364864349365, "z": 0.690590500831604 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/cymbal3-head.fbx", "name": "RX17-CRASH", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos2), "queryAACube": { "scale": 1.0013833045959473, "x": -0.22229504585266113, "y": 0.41759014129638672, "z": -0.068112611770629883 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "visible": false, "script": SPRING_ENTITY_SCRIPT_URL, "dynamic": true }; var springID2 = Entities.addEntity(prop2); Entities.addAction("spring", springID2, { targetPosition: prop2.position, linearTimeScale: 0.09, targetRotation: prop2.rotation, angularTimeScale: 0.001 }); var pos3 = { // "x": 0, // "y": -0.119455555555555, // "z": 0 "x": 0, "y": 0.4952939033508301, "z": 0 }; var prop3 = { "clientOnly": 0, "created": "2016-10-12T21:37:18Z", "description": "Drum Set T4", "dimensions": { "x": 0.7999345064163208, "y": 0.37546050548553467, "z": 0.82227444648742676 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/cymbal4-head.fbx", "name": "RIDE01", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos3), "queryAACube": { "scale": 1.2070629596710205, "x": -0.60353147983551025, "y": -0.023029923439025879, "z": -0.60353147983551025 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID3 = Entities.addEntity(prop3); Entities.addAction("spring", springID3, { targetPosition: getPosition(pos3), linearTimeScale: 0.09, targetRotation: prop3.rotation, angularTimeScale: 0.001 }); var pos4 = { // "x": 0.28443527221679688, // "y": 0, // "z": 0.1427154541015625 "x": 0.30172348022460938, "y": -0.095150555555555, "z": 0.13091278076171875 }; var prop4 = { "clientOnly": 0, "created": "2016-10-12T21:35:07Z", "description": "Drum Set B4", "dimensions": { "x": 0.64289271831512451, "y": 0.58302426338195801, "z": 0.6204296350479126 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/drum4-head.fbx", "name": "TOM3", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos4), "queryAACube": { "scale": 1.0668463706970215, "x": -0.24898791313171387, "y": -0.53342318534851074, "z": -0.39070773124694824 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID4 = Entities.addEntity(prop4); Entities.addAction("spring", springID4, { targetPosition: prop4.position, linearTimeScale: 0.09, targetRotation: prop4.rotation, angularTimeScale: 0.001 }); var pos5 = { // "x": 0.7085113525390625, // "y": 0.22573423385620117, // "z": 0.72087860107421875 "x": 0.7304840087890625, "y": 0.16594390869140625, "z": 0.71282958984375 }; var prop5 = { "clientOnly": 0, "created": "2016-10-12T21:30:45Z", "description": "Drum Set B3", "dimensions": { "x": 0.41699486970901489, "y": 0.43548750877380371, "z": 0.48801636695861816 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/drum3-head.fbx", "name": "TOM4", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos5), "queryAACube": { "scale": 0.77568942308425903, "x": 0.32066664099693298, "y": -0.16211047768592834, "z": 0.33303388953208923 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID5 = Entities.addEntity(prop5); Entities.addAction("spring", springID5, { targetPosition: prop5.position, linearTimeScale: 0.09, targetRotation: prop5.rotation, angularTimeScale: 0.001 }); var pos6 = { "x": 1.8945198059082031, "y": 0.4881258487701416, "z": 0.08203887939453125 }; var prop6 = { "description": "Drum Set T1", "dimensions": { "x": 0.44338709115982056, "y": 0.20397853851318359, "z": 0.44607818126678467 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/cymbal1-head.fbx", "name": "HH", "position": getPosition(pos6), "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID6 = Entities.addEntity(prop6); Entities.addAction("spring", springID6, { targetPosition: prop6.position, linearTimeScale: 0.09, targetRotation: prop6.rotation, angularTimeScale: 0.001 }); var pos7 = { "x": 1.6030502319335938, "y": 0.062939453125, "z": 0.45587921142578125 }; var prop7 = { "clientOnly": 0, "created": "2016-10-12T21:35:07Z", "description": "Drum Set B1", "dimensions": { "x": 0.52639341354370117, "y": 0.36949896812438965, "z": 0.54592406749725342 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/drum1-head.fbx", "name": "SNARE01", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos7), "queryAACube": { "scale": 0.84359508752822876, "x": 1.1625339984893799, "y": -0.28986170887947083, "z": 0.01715967059135437 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID7 = Entities.addEntity(prop7); Entities.addAction("spring", springID7, { targetPosition: prop7.position, linearTimeScale: 0.09, targetRotation: prop7.rotation, angularTimeScale: 0.001 }); var pos8 = { "x": 1.132354736328125, "y": 0.14058785438537598, "z": 0.81217193603515625 }; var prop8 = { "clientOnly": 0, "created": "2016-10-12T17:50:06Z", "description": "Drum Set B2", "dimensions": { "x": 0.34498164057731628, "y": 0.37092894315719604, "z": 0.39761841297149658 }, "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drum/drum2-head.fbx", "name": "Bowling System - fireworks baseTOM2", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "position": getPosition(pos8), "queryAACube": { "scale": 0.64397281408309937, "x": 0.8205420970916748, "y": -0.098056763410568237, "z": 0.39829710125923157 }, "rotation": { "w": 1, "x": -1.52587890625e-05, "y": -1.52587890625e-05, "z": -1.52587890625e-05 }, "shapeType": "simple-hull", "type": "Model", "dynamic": true, "visible": false, "script": SPRING_ENTITY_SCRIPT_URL }; var springID8 = Entities.addEntity(prop8); Entities.addAction("spring", springID8, { targetPosition: prop8.position, linearTimeScale: 0.09, targetRotation: prop8.rotation, angularTimeScale: 0.001 }); var stickProps = { "collisionsWillMove": 1, "dimensions": { "x": 0.027076896280050278, "y": 0.82148945331573486, "z": 0.027076946571469307 }, "dynamic": 1, "gravity": { "x": 0, "y": 0, "z": 0 }, "name": "Drum Stick", "position": getPosition({ "x": 0.98897933959960938, "y": 0.233674716949462891, "z": 0.30875778198242188 }), "modelURL": "https://hifi-content.s3.amazonaws.com/lincoln/drumstick-single.fbx", "owningAvatarID": "{00000000-0000-0000-0000-000000000000}", "restitution": 0, "rotation": { "w": -0.075280420482158661, "x": 0.50803983211517334, "y": 0.53161418437957764, "z": 0.67350935935974121 }, "script": "https://hifi-content.s3.amazonaws.com/lincoln/stickScript.js", "shapeType": "box", "type": "Model", "userData": "{}" }; var drumStick = Entities.addEntity(stickProps); var copyStick = Entities.addEntity(Entities.getEntityProperties(drumStick));