mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:43:27 +02:00
add reset userdata to everything
This commit is contained in:
parent
c072cd323e
commit
0f17d1f12e
22 changed files with 504 additions and 338 deletions
|
@ -188,7 +188,12 @@
|
||||||
},
|
},
|
||||||
color: INTERSECT_COLOR,
|
color: INTERSECT_COLOR,
|
||||||
position: position,
|
position: position,
|
||||||
collisionless: true
|
collisionless: true,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
_this.debugSphere = Entities.addEntity(sphereProperties);
|
_this.debugSphere = Entities.addEntity(sphereProperties);
|
||||||
},
|
},
|
||||||
|
@ -640,7 +645,12 @@
|
||||||
red: 0,
|
red: 0,
|
||||||
green: 255,
|
green: 255,
|
||||||
blue: 255
|
blue: 255
|
||||||
}
|
},
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var TANK_SCRIPT = Script.resolvePath('tank.js?' + Math.random());
|
var TANK_SCRIPT = Script.resolvePath('tank.js?' + Math.random());
|
||||||
|
|
||||||
FishTank = function(spawnPosition, spawnRotation) {
|
FishTank = function(spawnPosition, spawnRotation) {
|
||||||
|
@ -38,8 +40,6 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
|
|
||||||
var TANK_POSITION = spawnPosition;
|
var TANK_POSITION = spawnPosition;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var TANK_MODEL_URL = "http://hifi-content.s3.amazonaws.com/DomainContent/Home/fishTank/aquariumTank.fbx";
|
var TANK_MODEL_URL = "http://hifi-content.s3.amazonaws.com/DomainContent/Home/fishTank/aquariumTank.fbx";
|
||||||
|
|
||||||
var TANK_BASE_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/DomainContent/Home/fishTank/aquariumBase.fbx';
|
var TANK_BASE_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/DomainContent/Home/fishTank/aquariumBase.fbx';
|
||||||
|
@ -107,11 +107,11 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
|
|
||||||
var LOWER_CORNER_VERTICAL_OFFSET = -TANK_DIMENSIONS.y / 2;
|
var LOWER_CORNER_VERTICAL_OFFSET = -TANK_DIMENSIONS.y / 2;
|
||||||
var LOWER_CORNER_FORWARD_OFFSET = TANK_DIMENSIONS.x;
|
var LOWER_CORNER_FORWARD_OFFSET = TANK_DIMENSIONS.x;
|
||||||
var LOWER_CORNER_LATERAL_OFFSET = -TANK_DIMENSIONS.z/8;
|
var LOWER_CORNER_LATERAL_OFFSET = -TANK_DIMENSIONS.z / 8;
|
||||||
|
|
||||||
var UPPER_CORNER_VERTICAL_OFFSET = TANK_DIMENSIONS.y / 2;;
|
var UPPER_CORNER_VERTICAL_OFFSET = TANK_DIMENSIONS.y / 2;;
|
||||||
var UPPER_CORNER_FORWARD_OFFSET = -TANK_DIMENSIONS.x;
|
var UPPER_CORNER_FORWARD_OFFSET = -TANK_DIMENSIONS.x;
|
||||||
var UPPER_CORNER_LATERAL_OFFSET = TANK_DIMENSIONS.z/8;
|
var UPPER_CORNER_LATERAL_OFFSET = TANK_DIMENSIONS.z / 8;
|
||||||
|
|
||||||
function createFishTank() {
|
function createFishTank() {
|
||||||
var tankProperties = {
|
var tankProperties = {
|
||||||
|
@ -124,7 +124,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
color: DEBUG_COLOR,
|
color: DEBUG_COLOR,
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
script: TANK_SCRIPT,
|
script: TANK_SCRIPT,
|
||||||
visible: true
|
visible: true,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spawnRotation !== undefined) {
|
if (spawnRotation !== undefined) {
|
||||||
|
@ -179,13 +184,20 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
"alphaStart": 0.3,
|
"alphaStart": 0.3,
|
||||||
"alphaFinish": 0,
|
"alphaFinish": 0,
|
||||||
"emitterShouldTrail": 0,
|
"emitterShouldTrail": 0,
|
||||||
"textures": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/fishTank/bubble-white.png"
|
"textures": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/fishTank/bubble-white.png",
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
bubbleProperties.type = "ParticleEffect";
|
bubbleProperties.type = "ParticleEffect";
|
||||||
bubbleProperties.parentID = fishTank;
|
bubbleProperties.parentID = fishTank;
|
||||||
bubbleProperties.dimensions = BUBBLE_SYSTEM_DIMENSIONS;
|
bubbleProperties.dimensions = BUBBLE_SYSTEM_DIMENSIONS;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var finalOffset = getOffsetFromTankCenter(BUBBLE_SYSTEM_VERTICAL_OFFSET, BUBBLE_SYSTEM_FORWARD_OFFSET, BUBBLE_SYSTEM_LATERAL_OFFSET);
|
var finalOffset = getOffsetFromTankCenter(BUBBLE_SYSTEM_VERTICAL_OFFSET, BUBBLE_SYSTEM_FORWARD_OFFSET, BUBBLE_SYSTEM_LATERAL_OFFSET);
|
||||||
|
|
||||||
bubbleProperties.position = finalOffset;
|
bubbleProperties.position = finalOffset;
|
||||||
|
@ -246,7 +258,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
position: tankProperties.position,
|
position: tankProperties.position,
|
||||||
visible: false,
|
visible: false,
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
dynamic: false
|
dynamic: false,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
innerContainer = Entities.addEntity(containerProps);
|
innerContainer = Entities.addEntity(containerProps);
|
||||||
|
@ -271,7 +288,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
},
|
},
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
position: getOffsetFromTankCenter(LOWER_CORNER_VERTICAL_OFFSET, LOWER_CORNER_FORWARD_OFFSET, LOWER_CORNER_LATERAL_OFFSET),
|
position: getOffsetFromTankCenter(LOWER_CORNER_VERTICAL_OFFSET, LOWER_CORNER_FORWARD_OFFSET, LOWER_CORNER_LATERAL_OFFSET),
|
||||||
visible: true
|
visible: true,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
var upperProps = {
|
var upperProps = {
|
||||||
|
@ -290,7 +312,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
},
|
},
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
position: getOffsetFromTankCenter(UPPER_CORNER_VERTICAL_OFFSET, UPPER_CORNER_FORWARD_OFFSET, UPPER_CORNER_LATERAL_OFFSET),
|
position: getOffsetFromTankCenter(UPPER_CORNER_VERTICAL_OFFSET, UPPER_CORNER_FORWARD_OFFSET, UPPER_CORNER_LATERAL_OFFSET),
|
||||||
visible: true
|
visible: true,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
lowerCorner = Entities.addEntity(lowerProps);
|
lowerCorner = Entities.addEntity(lowerProps);
|
||||||
|
@ -307,7 +334,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
parentID: fishTank,
|
parentID: fishTank,
|
||||||
modelURL: ROCK_MODEL_URL,
|
modelURL: ROCK_MODEL_URL,
|
||||||
position: finalPosition,
|
position: finalPosition,
|
||||||
dimensions: ROCK_DIMENSIONS
|
dimensions: ROCK_DIMENSIONS,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
rocks = Entities.addEntity(properties);
|
rocks = Entities.addEntity(properties);
|
||||||
|
@ -323,7 +355,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
modelURL: URCHIN_MODEL_URL,
|
modelURL: URCHIN_MODEL_URL,
|
||||||
position: finalPosition,
|
position: finalPosition,
|
||||||
shapeType: 'Sphere',
|
shapeType: 'Sphere',
|
||||||
dimensions: URCHIN_DIMENSIONS
|
dimensions: URCHIN_DIMENSIONS,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
urchin = Entities.addEntity(properties);
|
urchin = Entities.addEntity(properties);
|
||||||
|
@ -340,7 +377,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
modelURL: TREASURE_MODEL_URL,
|
modelURL: TREASURE_MODEL_URL,
|
||||||
position: finalPosition,
|
position: finalPosition,
|
||||||
dimensions: TREASURE_DIMENSIONS,
|
dimensions: TREASURE_DIMENSIONS,
|
||||||
rotation: Quat.fromPitchYawRollDegrees(10, -45, 10)
|
rotation: Quat.fromPitchYawRollDegrees(10, -45, 10),
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
treasure = Entities.addEntity(properties);
|
treasure = Entities.addEntity(properties);
|
||||||
|
@ -359,7 +401,12 @@ FishTank = function(spawnPosition, spawnRotation) {
|
||||||
y: TANK_POSITION.y - BASE_VERTICAL_OFFSET,
|
y: TANK_POSITION.y - BASE_VERTICAL_OFFSET,
|
||||||
z: TANK_POSITION.z
|
z: TANK_POSITION.z
|
||||||
},
|
},
|
||||||
dimensions: TANK_BASE_DIMENSIONS
|
dimensions: TANK_BASE_DIMENSIONS,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
tankBase = Entities.addEntity(properties);
|
tankBase = Entities.addEntity(properties);
|
||||||
|
|
|
@ -105,7 +105,11 @@
|
||||||
hslColor: Math.random() < 0.5 ? _this.flowerHSLColors[0] : _this.flowerHSLColors[1],
|
hslColor: Math.random() < 0.5 ? _this.flowerHSLColors[0] : _this.flowerHSLColors[1],
|
||||||
growthRate: growthRate
|
growthRate: growthRate
|
||||||
};
|
};
|
||||||
|
|
||||||
flower.userData = {
|
flower.userData = {
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
ProceduralEntity: {
|
ProceduralEntity: {
|
||||||
shaderUrl: _this.SHADER_URL,
|
shaderUrl: _this.SHADER_URL,
|
||||||
uniforms: {
|
uniforms: {
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
Script.include('../utils.js');
|
Script.include('../utils.js');
|
||||||
|
|
||||||
var _this;
|
var _this;
|
||||||
|
|
||||||
function WaterSpout() {
|
function WaterSpout() {
|
||||||
_this = this;
|
_this = this;
|
||||||
_this.waterSound = SoundCache.getSound("https://s3-us-west-1.amazonaws.com/hifi-content/eric/Sounds/shower.wav");
|
_this.waterSound = SoundCache.getSound("https://s3-us-west-1.amazonaws.com/hifi-content/eric/Sounds/shower.wav");
|
||||||
|
@ -58,7 +59,7 @@
|
||||||
_this.waterPouring = false;
|
_this.waterPouring = false;
|
||||||
//water no longer pouring...
|
//water no longer pouring...
|
||||||
if (_this.waterInjector) {
|
if (_this.waterInjector) {
|
||||||
_this.waterInjector.stop();
|
_this.waterInjector.stop();
|
||||||
}
|
}
|
||||||
Entities.callEntityMethod(_this.mostRecentIntersectedGrowableEntity, 'stopWatering');
|
Entities.callEntityMethod(_this.mostRecentIntersectedGrowableEntity, 'stopWatering');
|
||||||
},
|
},
|
||||||
|
@ -187,6 +188,11 @@
|
||||||
alphaFinish: 1.0,
|
alphaFinish: 1.0,
|
||||||
emitterShouldTrail: true,
|
emitterShouldTrail: true,
|
||||||
textures: "https://s3-us-west-1.amazonaws.com/hifi-content/eric/images/raindrop.png",
|
textures: "https://s3-us-west-1.amazonaws.com/hifi-content/eric/images/raindrop.png",
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,7 +32,12 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
modelURL: BOWL_MODEL_URL,
|
modelURL: BOWL_MODEL_URL,
|
||||||
dimensions: bowlDimensions,
|
dimensions: bowlDimensions,
|
||||||
name: "plant bowl",
|
name: "plant bowl",
|
||||||
position: bowlPosition
|
position: bowlPosition,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,7 +60,12 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
dimensions: plantDimensions,
|
dimensions: plantDimensions,
|
||||||
position: plantPosition,
|
position: plantPosition,
|
||||||
script: PLANT_SCRIPT_URL,
|
script: PLANT_SCRIPT_URL,
|
||||||
parentID: bowl
|
parentID: bowl,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -84,6 +94,9 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
},
|
},
|
||||||
rotation: waterCanRotation,
|
rotation: waterCanRotation,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
},
|
||||||
wearable: {
|
wearable: {
|
||||||
joints: {
|
joints: {
|
||||||
RightHand: [{
|
RightHand: [{
|
||||||
|
@ -130,7 +143,12 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
position: waterSpoutPosition,
|
position: waterSpoutPosition,
|
||||||
rotation: waterSpoutRotation,
|
rotation: waterSpoutRotation,
|
||||||
parentID: waterCan,
|
parentID: waterCan,
|
||||||
visible: false
|
visible: false,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
|
@ -143,7 +161,7 @@ Plant = function(spawnPosition, spawnRotation) {
|
||||||
|
|
||||||
this.cleanup = cleanup;
|
this.cleanup = cleanup;
|
||||||
|
|
||||||
print('CREATED PLANT:: '+ plant)
|
print('CREATED PLANT:: ' + plant)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"Entities": [{
|
"Entities": [{
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-15T21:26:11Z",
|
"created": "2016-03-15T21:26:11Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
},
|
},
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-07T21:07:29Z",
|
"created": "2016-03-07T21:07:29Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -61,6 +63,7 @@
|
||||||
"shapeType": "box",
|
"shapeType": "box",
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"created": "2016-03-15T21:26:11Z",
|
"created": "2016-03-15T21:26:11Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
"x": 0.23445942997932434,
|
"x": 0.23445942997932434,
|
||||||
|
@ -91,6 +94,7 @@
|
||||||
"shapeType": "box",
|
"shapeType": "box",
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-07T21:07:29Z",
|
"created": "2016-03-07T21:07:29Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -122,6 +126,7 @@
|
||||||
"shapeType": "box",
|
"shapeType": "box",
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-07T21:07:29Z",
|
"created": "2016-03-07T21:07:29Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -152,6 +157,7 @@
|
||||||
"shapeType": "box",
|
"shapeType": "box",
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-07T21:07:29Z",
|
"created": "2016-03-07T21:07:29Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -183,6 +189,7 @@
|
||||||
"shapeType": "box",
|
"shapeType": "box",
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-15T21:26:11Z",
|
"created": "2016-03-15T21:26:11Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -212,6 +219,7 @@
|
||||||
},
|
},
|
||||||
"type": "Model"
|
"type": "Model"
|
||||||
}, {
|
}, {
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
"collisionSoundURL": "http://hifi-content.s3.amazonaws.com/DomainContent/Home/Sounds/book_fall.L.wav",
|
||||||
"created": "2016-03-07T21:07:29Z",
|
"created": "2016-03-07T21:07:29Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"Entities": [{
|
"Entities": [{
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"compoundShapeURL": "http://hifi-content.s3.amazonaws.com/alan/dev/simple-chair2.obj",
|
"compoundShapeURL": "http://hifi-content.s3.amazonaws.com/alan/dev/simple-chair2.obj",
|
||||||
"created": "2016-03-07T21:07:29Z",
|
"created": "2016-03-07T21:07:29Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -28,8 +29,7 @@
|
||||||
"z": 0.0002593994140625
|
"z": 0.0002593994140625
|
||||||
},
|
},
|
||||||
"shapeType": "compound",
|
"shapeType": "compound",
|
||||||
"type": "Model",
|
"type": "Model"
|
||||||
"userData": "{}"
|
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -1,277 +1,270 @@
|
||||||
{
|
{
|
||||||
"Entities": [
|
"Entities": [{
|
||||||
{
|
"collisionsWillMove": 1,
|
||||||
"collisionsWillMove": 1,
|
"compoundShapeURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Bowl.obj",
|
||||||
"compoundShapeURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Bowl.obj",
|
"created": "2016-03-15T23:11:03Z",
|
||||||
"created": "2016-03-15T23:11:03Z",
|
"dimensions": {
|
||||||
"dimensions": {
|
"x": 0.35241550207138062,
|
||||||
"x": 0.35241550207138062,
|
"y": 0.08979363739490509,
|
||||||
"y": 0.08979363739490509,
|
"z": 0.35241544246673584
|
||||||
"z": 0.35241544246673584
|
|
||||||
},
|
|
||||||
"dynamic": 1,
|
|
||||||
"gravity": {
|
|
||||||
"x": 0,
|
|
||||||
"y": -7,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": "{fa981882-c38f-4413-88f2-255a06aacf08}",
|
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Bowl.fbx",
|
|
||||||
"position": {
|
|
||||||
"x": 0.1168212890625,
|
|
||||||
"y": 0,
|
|
||||||
"z": 0.11590576171875
|
|
||||||
},
|
|
||||||
"queryAACube": {
|
|
||||||
"scale": 0.50641506910324097,
|
|
||||||
"x": -0.13638624548912048,
|
|
||||||
"y": -0.25320753455162048,
|
|
||||||
"z": -0.13730177283287048
|
|
||||||
},
|
|
||||||
"rotation": {
|
|
||||||
"w": 0.49941253662109375,
|
|
||||||
"x": -4.57763671875e-05,
|
|
||||||
"y": 0.86633098125457764,
|
|
||||||
"z": -0.0001068115234375
|
|
||||||
},
|
|
||||||
"shapeType": "compound",
|
|
||||||
"type": "Model",
|
|
||||||
"userData": "{}"
|
|
||||||
},
|
},
|
||||||
{
|
"dynamic": 1,
|
||||||
"collisionsWillMove": 1,
|
"gravity": {
|
||||||
"created": "2016-03-15T21:26:11Z",
|
"x": 0,
|
||||||
"dimensions": {
|
"y": -7,
|
||||||
"x": 0.083729811012744904,
|
"z": 0
|
||||||
"y": 0.092105500400066376,
|
|
||||||
"z": 0.08111707866191864
|
|
||||||
},
|
|
||||||
"dynamic": 1,
|
|
||||||
"friction": 0.33000001311302185,
|
|
||||||
"gravity": {
|
|
||||||
"x": 0,
|
|
||||||
"y": -9,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": "{ed04b516-3c66-42d9-99af-c4425765df27}",
|
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple-2.fbx",
|
|
||||||
"position": {
|
|
||||||
"x": 0.1728515625,
|
|
||||||
"y": 0.040313720703125,
|
|
||||||
"z": 0.08847808837890625
|
|
||||||
},
|
|
||||||
"queryAACube": {
|
|
||||||
"scale": 0.14857350289821625,
|
|
||||||
"x": 0.098564811050891876,
|
|
||||||
"y": -0.033973030745983124,
|
|
||||||
"z": 0.014191336929798126
|
|
||||||
},
|
|
||||||
"restitution": 0.33000001311302185,
|
|
||||||
"rotation": {
|
|
||||||
"w": 0.74630355834960938,
|
|
||||||
"x": -0.5419546365737915,
|
|
||||||
"y": 0.080125093460083008,
|
|
||||||
"z": -0.37801176309585571
|
|
||||||
},
|
|
||||||
"shapeType": "sphere",
|
|
||||||
"type": "Model",
|
|
||||||
"userData": "{}"
|
|
||||||
},
|
},
|
||||||
{
|
"id": "{fa981882-c38f-4413-88f2-255a06aacf08}",
|
||||||
"collisionsWillMove": 1,
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Bowl.fbx",
|
||||||
"created": "2016-03-15T21:26:11Z",
|
"position": {
|
||||||
"dimensions": {
|
"x": 0.1168212890625,
|
||||||
"x": 0.089192003011703491,
|
"y": 0,
|
||||||
"y": 0.098114080727100372,
|
"z": 0.11590576171875
|
||||||
"z": 0.086408823728561401
|
|
||||||
},
|
|
||||||
"dynamic": 1,
|
|
||||||
"friction": 0.33000001311302185,
|
|
||||||
"gravity": {
|
|
||||||
"x": 0,
|
|
||||||
"y": -8,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": "{031f883a-6d7f-447a-96b1-c3ea75f938e1}",
|
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple.fbx",
|
|
||||||
"position": {
|
|
||||||
"x": 0.146240234375,
|
|
||||||
"y": 0.083740234375,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"queryAACube": {
|
|
||||||
"scale": 0.15826581418514252,
|
|
||||||
"x": 0.067107327282428741,
|
|
||||||
"y": 0.0046073272824287415,
|
|
||||||
"z": -0.079132907092571259
|
|
||||||
},
|
|
||||||
"restitution": 0.30000001192092896,
|
|
||||||
"rotation": {
|
|
||||||
"w": -0.2233462929725647,
|
|
||||||
"x": 0.81002521514892578,
|
|
||||||
"y": -0.071244359016418457,
|
|
||||||
"z": 0.5374685525894165
|
|
||||||
},
|
|
||||||
"shapeType": "sphere",
|
|
||||||
"type": "Model",
|
|
||||||
"userData": "{\"grabbableKey\":{\"grabbable\":true}}"
|
|
||||||
},
|
},
|
||||||
{
|
"queryAACube": {
|
||||||
"collisionsWillMove": 1,
|
"scale": 0.50641506910324097,
|
||||||
"created": "2016-03-16T00:27:30Z",
|
"x": -0.13638624548912048,
|
||||||
"dimensions": {
|
"y": -0.25320753455162048,
|
||||||
"x": 0.083729811012744904,
|
"z": -0.13730177283287048
|
||||||
"y": 0.092105500400066376,
|
|
||||||
"z": 0.08111707866191864
|
|
||||||
},
|
|
||||||
"dynamic": 1,
|
|
||||||
"friction": 0.33000001311302185,
|
|
||||||
"gravity": {
|
|
||||||
"x": 0,
|
|
||||||
"y": -9,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": "{e3d77c1e-1fcf-4dc2-8799-001046934df8}",
|
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple-2.fbx",
|
|
||||||
"position": {
|
|
||||||
"x": 0.08203125,
|
|
||||||
"y": 0.042266845703125,
|
|
||||||
"z": 0.05945587158203125
|
|
||||||
},
|
|
||||||
"queryAACube": {
|
|
||||||
"scale": 0.14857350289821625,
|
|
||||||
"x": 0.0077444985508918762,
|
|
||||||
"y": -0.032019905745983124,
|
|
||||||
"z": -0.014830879867076874
|
|
||||||
},
|
|
||||||
"restitution": 0.33000001311302185,
|
|
||||||
"rotation": {
|
|
||||||
"w": 0.82665753364562988,
|
|
||||||
"x": -0.32744336128234863,
|
|
||||||
"y": 0.10566878318786621,
|
|
||||||
"z": 0.44527351856231689
|
|
||||||
},
|
|
||||||
"shapeType": "sphere",
|
|
||||||
"type": "Model",
|
|
||||||
"userData": "{}"
|
|
||||||
},
|
},
|
||||||
{
|
"rotation": {
|
||||||
"collisionsWillMove": 1,
|
"w": 0.49941253662109375,
|
||||||
"created": "2016-03-16T00:27:30Z",
|
"x": -4.57763671875e-05,
|
||||||
"dimensions": {
|
"y": 0.86633098125457764,
|
||||||
"x": 0.089192003011703491,
|
"z": -0.0001068115234375
|
||||||
"y": 0.098114080727100372,
|
|
||||||
"z": 0.086408823728561401
|
|
||||||
},
|
|
||||||
"dynamic": 1,
|
|
||||||
"friction": 0.33000001311302185,
|
|
||||||
"gravity": {
|
|
||||||
"x": 0,
|
|
||||||
"y": -8,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": "{34c224cf-d5f5-4cf3-9bf6-55857bf08e43}",
|
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple.fbx",
|
|
||||||
"position": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0.082916259765625,
|
|
||||||
"z": 0.0829925537109375
|
|
||||||
},
|
|
||||||
"queryAACube": {
|
|
||||||
"scale": 0.15826581418514252,
|
|
||||||
"x": -0.079132907092571259,
|
|
||||||
"y": 0.0037833526730537415,
|
|
||||||
"z": 0.0038596466183662415
|
|
||||||
},
|
|
||||||
"restitution": 0.30000001192092896,
|
|
||||||
"rotation": {
|
|
||||||
"w": 0.075150728225708008,
|
|
||||||
"x": 0.60289919376373291,
|
|
||||||
"y": 0.78295564651489258,
|
|
||||||
"z": -0.13344013690948486
|
|
||||||
},
|
|
||||||
"shapeType": "sphere",
|
|
||||||
"type": "Model",
|
|
||||||
"userData": "{\"grabbableKey\":{\"grabbable\":true}}"
|
|
||||||
},
|
},
|
||||||
{
|
"shapeType": "compound",
|
||||||
"collisionsWillMove": 1,
|
"type": "Model",
|
||||||
"created": "2016-03-16T00:27:30Z",
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
"dimensions": {
|
}, {
|
||||||
"x": 0.083729811012744904,
|
"collisionsWillMove": 1,
|
||||||
"y": 0.092105500400066376,
|
"created": "2016-03-15T21:26:11Z",
|
||||||
"z": 0.08111707866191864
|
"dimensions": {
|
||||||
},
|
"x": 0.083729811012744904,
|
||||||
"dynamic": 1,
|
"y": 0.092105500400066376,
|
||||||
"friction": 0.33000001311302185,
|
"z": 0.08111707866191864
|
||||||
"gravity": {
|
|
||||||
"x": 0,
|
|
||||||
"y": -9,
|
|
||||||
"z": 0
|
|
||||||
},
|
|
||||||
"id": "{0eab5380-2358-4bcd-b53e-a071d50e1475}",
|
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple-2.fbx",
|
|
||||||
"position": {
|
|
||||||
"x": 0.0596923828125,
|
|
||||||
"y": 0.04351806640625,
|
|
||||||
"z": 0.15406036376953125
|
|
||||||
},
|
|
||||||
"queryAACube": {
|
|
||||||
"scale": 0.14857350289821625,
|
|
||||||
"x": -0.014594368636608124,
|
|
||||||
"y": -0.030768685042858124,
|
|
||||||
"z": 0.079773612320423126
|
|
||||||
},
|
|
||||||
"restitution": 0.33000001311302185,
|
|
||||||
"rotation": {
|
|
||||||
"w": -0.047714948654174805,
|
|
||||||
"x": 0.91860842704772949,
|
|
||||||
"y": -0.33046466112136841,
|
|
||||||
"z": -0.21126115322113037
|
|
||||||
},
|
|
||||||
"shapeType": "sphere",
|
|
||||||
"type": "Model",
|
|
||||||
"userData": "{}"
|
|
||||||
},
|
},
|
||||||
{
|
"dynamic": 1,
|
||||||
"collisionsWillMove": 1,
|
"friction": 0.33000001311302185,
|
||||||
"created": "2016-03-16T00:27:30Z",
|
"gravity": {
|
||||||
"dimensions": {
|
"x": 0,
|
||||||
"x": 0.089192003011703491,
|
"y": -9,
|
||||||
"y": 0.098114080727100372,
|
"z": 0
|
||||||
"z": 0.086408823728561401
|
},
|
||||||
},
|
"id": "{ed04b516-3c66-42d9-99af-c4425765df27}",
|
||||||
"dynamic": 1,
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple-2.fbx",
|
||||||
"friction": 0.33000001311302185,
|
"position": {
|
||||||
"gravity": {
|
"x": 0.1728515625,
|
||||||
"x": 0,
|
"y": 0.040313720703125,
|
||||||
"y": -8,
|
"z": 0.08847808837890625
|
||||||
"z": 0
|
},
|
||||||
},
|
"queryAACube": {
|
||||||
"id": "{c8140643-23fb-4827-b708-e87103f9e438}",
|
"scale": 0.14857350289821625,
|
||||||
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple.fbx",
|
"x": 0.098564811050891876,
|
||||||
"position": {
|
"y": -0.033973030745983124,
|
||||||
"x": 0.1519775390625,
|
"z": 0.014191336929798126
|
||||||
"y": 0.046356201171875,
|
},
|
||||||
"z": 0.16817474365234375
|
"restitution": 0.33000001311302185,
|
||||||
},
|
"rotation": {
|
||||||
"queryAACube": {
|
"w": 0.74630355834960938,
|
||||||
"scale": 0.15826581418514252,
|
"x": -0.5419546365737915,
|
||||||
"x": 0.072844631969928741,
|
"y": 0.080125093460083008,
|
||||||
"y": -0.032776705920696259,
|
"z": -0.37801176309585571
|
||||||
"z": 0.089041836559772491
|
},
|
||||||
},
|
"shapeType": "sphere",
|
||||||
"restitution": 0.30000001192092896,
|
"type": "Model",
|
||||||
"rotation": {
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
"w": 0.59276723861694336,
|
} {
|
||||||
"x": 0.56038761138916016,
|
"collisionsWillMove": 1,
|
||||||
"y": 0.10734724998474121,
|
"created": "2016-03-15T21:26:11Z",
|
||||||
"z": -0.56835281848907471
|
"dimensions": {
|
||||||
},
|
"x": 0.089192003011703491,
|
||||||
"shapeType": "sphere",
|
"y": 0.098114080727100372,
|
||||||
"type": "Model",
|
"z": 0.086408823728561401
|
||||||
"userData": "{\"grabbableKey\":{\"grabbable\":true}}"
|
},
|
||||||
}
|
"dynamic": 1,
|
||||||
],
|
"friction": 0.33000001311302185,
|
||||||
|
"gravity": {
|
||||||
|
"x": 0,
|
||||||
|
"y": -8,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": "{031f883a-6d7f-447a-96b1-c3ea75f938e1}",
|
||||||
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple.fbx",
|
||||||
|
"position": {
|
||||||
|
"x": 0.146240234375,
|
||||||
|
"y": 0.083740234375,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"queryAACube": {
|
||||||
|
"scale": 0.15826581418514252,
|
||||||
|
"x": 0.067107327282428741,
|
||||||
|
"y": 0.0046073272824287415,
|
||||||
|
"z": -0.079132907092571259
|
||||||
|
},
|
||||||
|
"restitution": 0.30000001192092896,
|
||||||
|
"rotation": {
|
||||||
|
"w": -0.2233462929725647,
|
||||||
|
"x": 0.81002521514892578,
|
||||||
|
"y": -0.071244359016418457,
|
||||||
|
"z": 0.5374685525894165
|
||||||
|
},
|
||||||
|
"shapeType": "sphere",
|
||||||
|
"type": "Model",
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true},\"grabbableKey\":{\"grabbable\":true}}"
|
||||||
|
}, {
|
||||||
|
"collisionsWillMove": 1,
|
||||||
|
"created": "2016-03-16T00:27:30Z",
|
||||||
|
"dimensions": {
|
||||||
|
"x": 0.083729811012744904,
|
||||||
|
"y": 0.092105500400066376,
|
||||||
|
"z": 0.08111707866191864
|
||||||
|
},
|
||||||
|
"dynamic": 1,
|
||||||
|
"friction": 0.33000001311302185,
|
||||||
|
"gravity": {
|
||||||
|
"x": 0,
|
||||||
|
"y": -9,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": "{e3d77c1e-1fcf-4dc2-8799-001046934df8}",
|
||||||
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple-2.fbx",
|
||||||
|
"position": {
|
||||||
|
"x": 0.08203125,
|
||||||
|
"y": 0.042266845703125,
|
||||||
|
"z": 0.05945587158203125
|
||||||
|
},
|
||||||
|
"queryAACube": {
|
||||||
|
"scale": 0.14857350289821625,
|
||||||
|
"x": 0.0077444985508918762,
|
||||||
|
"y": -0.032019905745983124,
|
||||||
|
"z": -0.014830879867076874
|
||||||
|
},
|
||||||
|
"restitution": 0.33000001311302185,
|
||||||
|
"rotation": {
|
||||||
|
"w": 0.82665753364562988,
|
||||||
|
"x": -0.32744336128234863,
|
||||||
|
"y": 0.10566878318786621,
|
||||||
|
"z": 0.44527351856231689
|
||||||
|
},
|
||||||
|
"shapeType": "sphere",
|
||||||
|
"type": "Model",
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
|
}, {
|
||||||
|
"collisionsWillMove": 1,
|
||||||
|
"created": "2016-03-16T00:27:30Z",
|
||||||
|
"dimensions": {
|
||||||
|
"x": 0.089192003011703491,
|
||||||
|
"y": 0.098114080727100372,
|
||||||
|
"z": 0.086408823728561401
|
||||||
|
},
|
||||||
|
"dynamic": 1,
|
||||||
|
"friction": 0.33000001311302185,
|
||||||
|
"gravity": {
|
||||||
|
"x": 0,
|
||||||
|
"y": -8,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": "{34c224cf-d5f5-4cf3-9bf6-55857bf08e43}",
|
||||||
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple.fbx",
|
||||||
|
"position": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 0.082916259765625,
|
||||||
|
"z": 0.0829925537109375
|
||||||
|
},
|
||||||
|
"queryAACube": {
|
||||||
|
"scale": 0.15826581418514252,
|
||||||
|
"x": -0.079132907092571259,
|
||||||
|
"y": 0.0037833526730537415,
|
||||||
|
"z": 0.0038596466183662415
|
||||||
|
},
|
||||||
|
"restitution": 0.30000001192092896,
|
||||||
|
"rotation": {
|
||||||
|
"w": 0.075150728225708008,
|
||||||
|
"x": 0.60289919376373291,
|
||||||
|
"y": 0.78295564651489258,
|
||||||
|
"z": -0.13344013690948486
|
||||||
|
},
|
||||||
|
"shapeType": "sphere",
|
||||||
|
"type": "Model",
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true},\"grabbableKey\":{\"grabbable\":true}}"
|
||||||
|
|
||||||
|
}, {
|
||||||
|
"collisionsWillMove": 1,
|
||||||
|
"created": "2016-03-16T00:27:30Z",
|
||||||
|
"dimensions": {
|
||||||
|
"x": 0.083729811012744904,
|
||||||
|
"y": 0.092105500400066376,
|
||||||
|
"z": 0.08111707866191864
|
||||||
|
},
|
||||||
|
"dynamic": 1,
|
||||||
|
"friction": 0.33000001311302185,
|
||||||
|
"gravity": {
|
||||||
|
"x": 0,
|
||||||
|
"y": -9,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": "{0eab5380-2358-4bcd-b53e-a071d50e1475}",
|
||||||
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple-2.fbx",
|
||||||
|
"position": {
|
||||||
|
"x": 0.0596923828125,
|
||||||
|
"y": 0.04351806640625,
|
||||||
|
"z": 0.15406036376953125
|
||||||
|
},
|
||||||
|
"queryAACube": {
|
||||||
|
"scale": 0.14857350289821625,
|
||||||
|
"x": -0.014594368636608124,
|
||||||
|
"y": -0.030768685042858124,
|
||||||
|
"z": 0.079773612320423126
|
||||||
|
},
|
||||||
|
"restitution": 0.33000001311302185,
|
||||||
|
"rotation": {
|
||||||
|
"w": -0.047714948654174805,
|
||||||
|
"x": 0.91860842704772949,
|
||||||
|
"y": -0.33046466112136841,
|
||||||
|
"z": -0.21126115322113037
|
||||||
|
},
|
||||||
|
"shapeType": "sphere",
|
||||||
|
"type": "Model",
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true},\"grabbableKey\":{\"grabbable\":true}}"
|
||||||
|
}, {
|
||||||
|
"collisionsWillMove": 1,
|
||||||
|
"created": "2016-03-16T00:27:30Z",
|
||||||
|
"dimensions": {
|
||||||
|
"x": 0.089192003011703491,
|
||||||
|
"y": 0.098114080727100372,
|
||||||
|
"z": 0.086408823728561401
|
||||||
|
},
|
||||||
|
"dynamic": 1,
|
||||||
|
"friction": 0.33000001311302185,
|
||||||
|
"gravity": {
|
||||||
|
"x": 0,
|
||||||
|
"y": -8,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"id": "{c8140643-23fb-4827-b708-e87103f9e438}",
|
||||||
|
"modelURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Fruit-Apple.fbx",
|
||||||
|
"position": {
|
||||||
|
"x": 0.1519775390625,
|
||||||
|
"y": 0.046356201171875,
|
||||||
|
"z": 0.16817474365234375
|
||||||
|
},
|
||||||
|
"queryAACube": {
|
||||||
|
"scale": 0.15826581418514252,
|
||||||
|
"x": 0.072844631969928741,
|
||||||
|
"y": -0.032776705920696259,
|
||||||
|
"z": 0.089041836559772491
|
||||||
|
},
|
||||||
|
"restitution": 0.30000001192092896,
|
||||||
|
"rotation": {
|
||||||
|
"w": 0.59276723861694336,
|
||||||
|
"x": 0.56038761138916016,
|
||||||
|
"y": 0.10734724998474121,
|
||||||
|
"z": -0.56835281848907471
|
||||||
|
},
|
||||||
|
"shapeType": "sphere",
|
||||||
|
"type": "Model",
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true},\"grabbableKey\":{\"grabbable\":true}}"
|
||||||
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"Entities": [{
|
"Entities": [{
|
||||||
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}",
|
||||||
"compoundShapeURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Little-Lamp.obj",
|
"compoundShapeURL": "http://hifi-content.s3.amazonaws.com/alan/dev/Little-Lamp.obj",
|
||||||
"created": "2016-03-16T01:00:16Z",
|
"created": "2016-03-16T01:00:16Z",
|
||||||
"dimensions": {
|
"dimensions": {
|
||||||
|
@ -29,7 +30,6 @@
|
||||||
},
|
},
|
||||||
"shapeType": "compound",
|
"shapeType": "compound",
|
||||||
"type": "Model",
|
"type": "Model",
|
||||||
"userData": "{\"grabbableKey\":{\"grabbable\":true,\"wantsTrigger\":true}}"
|
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
"shapeType": "compound",
|
"shapeType": "compound",
|
||||||
"type": "Model",
|
"type": "Model",
|
||||||
"userData": "{}"
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
"shapeType": "compound",
|
"shapeType": "compound",
|
||||||
"type": "Model",
|
"type": "Model",
|
||||||
"userData": "{\"grabbableKey\":{\"grabbable\":true,\"wantsTrigger\":true}}"
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -26,7 +26,7 @@
|
||||||
"z": -0.88293278217315674
|
"z": -0.88293278217315674
|
||||||
},
|
},
|
||||||
"type": "Box",
|
"type": "Box",
|
||||||
"userData": "{}"
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
"shapeType": "compound",
|
"shapeType": "compound",
|
||||||
"type": "Model",
|
"type": "Model",
|
||||||
"userData": "{}"
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -31,7 +31,7 @@
|
||||||
},
|
},
|
||||||
"shapeType": "compound",
|
"shapeType": "compound",
|
||||||
"type": "Model",
|
"type": "Model",
|
||||||
"userData": "{}"
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
"z": -0.88293278217315674
|
"z": -0.88293278217315674
|
||||||
},
|
},
|
||||||
"type": "Box",
|
"type": "Box",
|
||||||
"userData": "{}"
|
"userData": "{\"hifiHomeKey\":{\"reset\":true}}"
|
||||||
}],
|
}],
|
||||||
"Version": 57
|
"Version": 57
|
||||||
}
|
}
|
|
@ -109,7 +109,12 @@
|
||||||
rotation: gunProperties.rotation,
|
rotation: gunProperties.rotation,
|
||||||
position: this.getGunTipPosition(gunProperties),
|
position: this.getGunTipPosition(gunProperties),
|
||||||
velocity: forwardVec,
|
velocity: forwardVec,
|
||||||
lifetime: 10
|
lifetime: 10,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
Entities.addEntity(properties);
|
Entities.addEntity(properties);
|
||||||
|
@ -125,7 +130,7 @@
|
||||||
|
|
||||||
Audio.playSound(this.SHOOTING_SOUND, audioProperties);
|
Audio.playSound(this.SHOOTING_SOUND, audioProperties);
|
||||||
},
|
},
|
||||||
|
|
||||||
getGunTipPosition: function(properties) {
|
getGunTipPosition: function(properties) {
|
||||||
//the tip of the gun is going to be in a different place than the center, so we move in space relative to the model to find that position
|
//the tip of the gun is going to be in a different place than the center, so we move in space relative to the model to find that position
|
||||||
var frontVector = Quat.getFront(properties.rotation);
|
var frontVector = Quat.getFront(properties.rotation);
|
||||||
|
|
|
@ -28,13 +28,16 @@ _PingPongGun = function(spawnPosition, spawnRotation) {
|
||||||
y: 0.3875,
|
y: 0.3875,
|
||||||
z: 0.9931
|
z: 0.9931
|
||||||
},
|
},
|
||||||
rotation:Quat.fromPitchYawRollDegrees(spawnRotation.x,spawnRotation.y,spawnRotation.z),
|
rotation: Quat.fromPitchYawRollDegrees(spawnRotation.x, spawnRotation.y, spawnRotation.z),
|
||||||
dynamic: true,
|
dynamic: true,
|
||||||
collisionSoundURL: COLLISION_SOUND_URL,
|
collisionSoundURL: COLLISION_SOUND_URL,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
invertSolidWhileHeld: true
|
invertSolidWhileHeld: true
|
||||||
},
|
},
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
},
|
||||||
wearable: {
|
wearable: {
|
||||||
joints: {
|
joints: {
|
||||||
RightHand: [{
|
RightHand: [{
|
||||||
|
@ -69,6 +72,6 @@ _PingPongGun = function(spawnPosition, spawnRotation) {
|
||||||
|
|
||||||
this.cleanup = cleanup;
|
this.cleanup = cleanup;
|
||||||
|
|
||||||
print('CREATED PING PONG GUN')
|
print('CREATED PING PONG GUN')
|
||||||
|
|
||||||
}
|
}
|
|
@ -79,8 +79,10 @@
|
||||||
_this.tidying = true;
|
_this.tidying = true;
|
||||||
_this.showTidyingButton();
|
_this.showTidyingButton();
|
||||||
_this.playTidyingSound();
|
_this.playTidyingSound();
|
||||||
_this.cleanupDynamicEntities();
|
|
||||||
_this.cleanupKineticEntities();
|
_this.findAndDeleteHomeEntities();
|
||||||
|
// _this.cleanupDynamicEntities();
|
||||||
|
// _this.cleanupKineticEntities();
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
_this.showTidyButton();
|
_this.showTidyButton();
|
||||||
_this.tidying = false;
|
_this.tidying = false;
|
||||||
|
@ -158,22 +160,19 @@
|
||||||
z: 89.9698
|
z: 89.9698
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dynamicEntities.push(fishTank);
|
|
||||||
dynamicEntities.push(tiltMaze);
|
|
||||||
dynamicEntities.push(whiteboard);
|
|
||||||
|
|
||||||
dynamicEntities.push(pingPongGun);
|
|
||||||
dynamicEntities.push(myPlant);
|
|
||||||
//v2.0
|
//v2.0
|
||||||
print('DYNAMIC ENTITIES AFTER CREATE:::' + dynamicEntities.length)
|
// var musicBox = new MusicBox();
|
||||||
// var musicBox = new MusicBox();
|
// var cuckooClock = new CuckooClock();
|
||||||
// var cuckooClock = new CuckooClock();
|
|
||||||
|
|
||||||
|
|
||||||
// var doppelganger = new Doppelganger();
|
// var doppelganger = new Doppelganger();
|
||||||
|
|
||||||
|
// dynamicEntities.push(fishTank);
|
||||||
|
// dynamicEntities.push(tiltMaze);
|
||||||
|
// dynamicEntities.push(whiteboard);
|
||||||
|
// dynamicEntities.push(pingPongGun);
|
||||||
|
// dynamicEntities.push(myPlant);
|
||||||
|
// print('DYNAMIC ENTITIES AFTER CREATE:::' + dynamicEntities.length)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -245,15 +244,15 @@
|
||||||
z: -80.4890
|
z: -80.4890
|
||||||
});
|
});
|
||||||
|
|
||||||
kineticEntities.push(fruitBowl);
|
// kineticEntities.push(fruitBowl);
|
||||||
kineticEntities.push(livingRoomLamp);
|
// kineticEntities.push(livingRoomLamp);
|
||||||
kineticEntities.push(upperBookShelf);
|
// kineticEntities.push(upperBookShelf);
|
||||||
kineticEntities.push(lowerBookShelf);
|
// kineticEntities.push(lowerBookShelf);
|
||||||
kineticEntities.push(rightDeskDrawer);
|
// kineticEntities.push(rightDeskDrawer);
|
||||||
kineticEntities.push(leftDeskDrawer);
|
// kineticEntities.push(leftDeskDrawer);
|
||||||
kineticEntities.push(chair);
|
// kineticEntities.push(chair);
|
||||||
kineticEntities.push(trashcan);
|
// kineticEntities.push(trashcan);
|
||||||
kineticEntities.push(books);
|
// kineticEntities.push(books);
|
||||||
},
|
},
|
||||||
|
|
||||||
cleanupKineticEntities: function() {
|
cleanupKineticEntities: function() {
|
||||||
|
@ -265,9 +264,29 @@
|
||||||
kineticEntity.cleanup();
|
kineticEntity.cleanup();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
findAndDeleteHomeEntities: function() {
|
||||||
|
var results = Entities.findEntities(_this.position, 1000);
|
||||||
|
var found = [];
|
||||||
|
results.forEach(function(result) {
|
||||||
|
var properties = Entities.getEntityProperties(result);
|
||||||
|
var userData = null;
|
||||||
|
try {
|
||||||
|
userData = JSON.parse(properties.userData);
|
||||||
|
} catch (err) {
|
||||||
|
// print('error parsing json');
|
||||||
|
// print('properties are:' + properties.userData);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (userData.hifiHomeKey.reset === true) {
|
||||||
|
Entities.deleteEntity(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
unload: function() {
|
unload: function() {
|
||||||
this.cleanupDynamicEntities();
|
this.findAndDeleteHomeEntities();
|
||||||
this.cleanupKineticEntities();
|
// this.cleanupDynamicEntities();
|
||||||
|
// this.cleanupKineticEntities();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
if (this.ballLocked === true) {
|
if (this.ballLocked === true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(this.ball!==null){
|
if (this.ball !== null) {
|
||||||
Entities.deleteEntity(this.ball);
|
Entities.deleteEntity(this.ball);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +113,12 @@
|
||||||
gravity: BALL_GRAVITY,
|
gravity: BALL_GRAVITY,
|
||||||
density: BALL_DENSITY,
|
density: BALL_DENSITY,
|
||||||
color: BALL_COLOR,
|
color: BALL_COLOR,
|
||||||
dimensions: BALL_DIMENSIONS
|
dimensions: BALL_DIMENSIONS,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
this.ball = Entities.addEntity(properties);
|
this.ball = Entities.addEntity(properties);
|
||||||
|
@ -197,7 +202,7 @@
|
||||||
_this.ballLocked = false;
|
_this.ballLocked = false;
|
||||||
_this.createBall();
|
_this.createBall();
|
||||||
}, 1500)
|
}, 1500)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
playVictorySound: function() {
|
playVictorySound: function() {
|
||||||
var position = Entities.getEntityProperties(this.entityID, "position").position;
|
var position = Entities.getEntityProperties(this.entityID, "position").position;
|
||||||
|
|
|
@ -83,9 +83,9 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
var MAZE_DAMPING = 0.6;
|
var MAZE_DAMPING = 0.6;
|
||||||
var MAZE_ANGULAR_DAMPING = 0.6;
|
var MAZE_ANGULAR_DAMPING = 0.6;
|
||||||
var MAZE_GRAVITY = {
|
var MAZE_GRAVITY = {
|
||||||
x:0,
|
x: 0,
|
||||||
y:-3,
|
y: -3,
|
||||||
z:0
|
z: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
var DETECTOR_VERTICAL_OFFSET = 0.0 * SCALE;
|
var DETECTOR_VERTICAL_OFFSET = 0.0 * SCALE;
|
||||||
|
@ -154,6 +154,9 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
color: BALL_COLOR,
|
color: BALL_COLOR,
|
||||||
dimensions: BALL_DIMENSIONS,
|
dimensions: BALL_DIMENSIONS,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
},
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
grabbable: false
|
grabbable: false
|
||||||
}
|
}
|
||||||
|
@ -175,6 +178,11 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
position: getBallStartLocation(),
|
position: getBallStartLocation(),
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
ballSpawningAnchor = Entities.addEntity(properties);
|
ballSpawningAnchor = Entities.addEntity(properties);
|
||||||
|
@ -194,6 +202,12 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
collisionless: true,
|
collisionless: true,
|
||||||
dynamic: false,
|
dynamic: false,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ballDetector = Entities.addEntity(properties);
|
ballDetector = Entities.addEntity(properties);
|
||||||
|
@ -205,7 +219,7 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
name: 'Hifi Tilt Maze',
|
name: 'Hifi Tilt Maze',
|
||||||
type: 'Model',
|
type: 'Model',
|
||||||
modelURL: MAZE_MODEL_URL,
|
modelURL: MAZE_MODEL_URL,
|
||||||
gravity:MAZE_GRAVITY,
|
gravity: MAZE_GRAVITY,
|
||||||
compoundShapeURL: MAZE_COLLISION_HULL,
|
compoundShapeURL: MAZE_COLLISION_HULL,
|
||||||
dimensions: MAZE_DIMENSIONS,
|
dimensions: MAZE_DIMENSIONS,
|
||||||
position: position,
|
position: position,
|
||||||
|
@ -214,7 +228,12 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
angularDamping: MAZE_ANGULAR_DAMPING,
|
angularDamping: MAZE_ANGULAR_DAMPING,
|
||||||
dynamic: true,
|
dynamic: true,
|
||||||
density: MAZE_DENSITY,
|
density: MAZE_DENSITY,
|
||||||
script: MAZE_SCRIPT
|
script: MAZE_SCRIPT,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spawnRotation !== undefined) {
|
if (spawnRotation !== undefined) {
|
||||||
|
@ -246,7 +265,12 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
cutoff: END_LIGHT_CUTOFF,
|
cutoff: END_LIGHT_CUTOFF,
|
||||||
lifetime: -1,
|
lifetime: -1,
|
||||||
position: position,
|
position: position,
|
||||||
rotation: emitOrientation
|
rotation: emitOrientation,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
lightAtTheEnd = Entities.addEntity(lightProperties);
|
lightAtTheEnd = Entities.addEntity(lightProperties);
|
||||||
|
@ -260,6 +284,9 @@ TiltMaze = function(spawnPosition, spawnRotation) {
|
||||||
createLightAtTheEnd();
|
createLightAtTheEnd();
|
||||||
Entities.editEntity(tiltMaze, {
|
Entities.editEntity(tiltMaze, {
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
},
|
||||||
tiltMaze: {
|
tiltMaze: {
|
||||||
firstBall: ball,
|
firstBall: ball,
|
||||||
ballSpawner: ballSpawningAnchor,
|
ballSpawner: ballSpawningAnchor,
|
||||||
|
|
|
@ -142,6 +142,11 @@
|
||||||
textures: _this.MARKER_TEXTURE_URL,
|
textures: _this.MARKER_TEXTURE_URL,
|
||||||
color: _this.markerColor,
|
color: _this.markerColor,
|
||||||
lifetime: 5000,
|
lifetime: 5000,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
_this.linePoints = [];
|
_this.linePoints = [];
|
||||||
|
|
|
@ -36,6 +36,11 @@ Whiteboard = function(spawnPosition, spawnRotation) {
|
||||||
y: 2.7,
|
y: 2.7,
|
||||||
z: 0.4636
|
z: 0.4636
|
||||||
},
|
},
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +69,12 @@ Whiteboard = function(spawnPosition, spawnRotation) {
|
||||||
position: whiteboardFrontSurfacePosition,
|
position: whiteboardFrontSurfacePosition,
|
||||||
rotation: whiteboardRotation,
|
rotation: whiteboardRotation,
|
||||||
visible: false,
|
visible: false,
|
||||||
parentID: whiteboard
|
parentID: whiteboard,
|
||||||
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
}
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
var whiteboardFrontDrawingSurface = Entities.addEntity(whiteboardSurfaceSettings);
|
var whiteboardFrontDrawingSurface = Entities.addEntity(whiteboardSurfaceSettings);
|
||||||
|
|
||||||
|
@ -107,6 +117,9 @@ Whiteboard = function(spawnPosition, spawnRotation) {
|
||||||
z: 0
|
z: 0
|
||||||
},
|
},
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
},
|
||||||
originalPosition: eraserPosition,
|
originalPosition: eraserPosition,
|
||||||
originalRotation: eraserRotation,
|
originalRotation: eraserRotation,
|
||||||
wearable: {
|
wearable: {
|
||||||
|
@ -196,6 +209,9 @@ Whiteboard = function(spawnPosition, spawnRotation) {
|
||||||
name: "marker",
|
name: "marker",
|
||||||
script: MARKER_SCRIPT_URL,
|
script: MARKER_SCRIPT_URL,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
|
'hifiHomeKey': {
|
||||||
|
'reset': true
|
||||||
|
},
|
||||||
originalPosition: markerPosition,
|
originalPosition: markerPosition,
|
||||||
originalRotation: markerRotation,
|
originalRotation: markerRotation,
|
||||||
markerColor: markerColor,
|
markerColor: markerColor,
|
||||||
|
|
Loading…
Reference in a new issue