mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:16:20 +02:00
Update hiddenEntityReset.js
Basketball rack should be grabbable;We are removing back gate.
This commit is contained in:
parent
b06fd3876b
commit
b41398be30
1 changed files with 5 additions and 44 deletions
|
@ -273,7 +273,7 @@
|
||||||
resetMe: true
|
resetMe: true
|
||||||
},
|
},
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
grabbable: true
|
grabbable: false
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -872,47 +872,8 @@
|
||||||
function createGates() {
|
function createGates() {
|
||||||
var MODEL_URL = 'http://hifi-public.s3.amazonaws.com/ryan/fence.fbx';
|
var MODEL_URL = 'http://hifi-public.s3.amazonaws.com/ryan/fence.fbx';
|
||||||
|
|
||||||
var rotation1 = Quat.fromPitchYawRollDegrees(0, 36, 0);
|
var rotation = Quat.fromPitchYawRollDegrees(0, -16, 0);
|
||||||
|
var gate = Entities.addEntity({
|
||||||
var gate1 = Entities.addEntity({
|
|
||||||
name: 'Back Door Gate',
|
|
||||||
type: 'Model',
|
|
||||||
shapeType: 'box',
|
|
||||||
modelURL: MODEL_URL,
|
|
||||||
position: {
|
|
||||||
x: 546.52,
|
|
||||||
y: 494.76,
|
|
||||||
z: 498.87
|
|
||||||
},
|
|
||||||
dimensions: {
|
|
||||||
x: 1.42,
|
|
||||||
y: 1.13,
|
|
||||||
z: 0.25
|
|
||||||
},
|
|
||||||
rotation: rotation1,
|
|
||||||
collisionsWillMove: true,
|
|
||||||
gravity: {
|
|
||||||
x: 0,
|
|
||||||
y: -50,
|
|
||||||
z: 0
|
|
||||||
},
|
|
||||||
linearDamping: 1,
|
|
||||||
angularDamping: 10,
|
|
||||||
mass: 10,
|
|
||||||
userData: JSON.stringify({
|
|
||||||
resetMe: {
|
|
||||||
resetMe: true,
|
|
||||||
},
|
|
||||||
grabbableKey: {
|
|
||||||
grabbable: false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
var rotation2 = Quat.fromPitchYawRollDegrees(0, -16, 0);
|
|
||||||
var gate2 = Entities.addEntity({
|
|
||||||
name: 'Front Door Fence',
|
name: 'Front Door Fence',
|
||||||
type: 'Model',
|
type: 'Model',
|
||||||
modelURL: MODEL_URL,
|
modelURL: MODEL_URL,
|
||||||
|
@ -942,7 +903,7 @@
|
||||||
resetMe: true,
|
resetMe: true,
|
||||||
},
|
},
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
grabbable: true
|
grabbable: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
@ -1347,4 +1308,4 @@
|
||||||
|
|
||||||
// entity scripts always need to return a newly constructed object of our type
|
// entity scripts always need to return a newly constructed object of our type
|
||||||
return new ResetSwitch();
|
return new ResetSwitch();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue