mirror of
https://github.com/overte-org/overte.git
synced 2025-06-05 00:41:58 +02:00
update blocky
This commit is contained in:
parent
3bc2725844
commit
b171b5e9eb
3 changed files with 16 additions and 24 deletions
|
@ -178,7 +178,9 @@ var TARGET_BLOCKS_POSITION = {
|
||||||
this.createPlayableBlocks(arrangement);
|
this.createPlayableBlocks(arrangement);
|
||||||
|
|
||||||
}
|
}
|
||||||
this.busy = false;
|
Script.setTimeout(function() {
|
||||||
|
_this.busy = false;
|
||||||
|
}, 1000)
|
||||||
},
|
},
|
||||||
|
|
||||||
findBlocks: function() {
|
findBlocks: function() {
|
||||||
|
@ -257,15 +259,15 @@ var TARGET_BLOCKS_POSITION = {
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function() {
|
update: function() {
|
||||||
if (this.busy === true) {
|
if (_this.busy === true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var BEAM_TRIGGER_THRESHOLD = 0.075;
|
var BEAM_TRIGGER_THRESHOLD = 0.075;
|
||||||
|
|
||||||
var BEAM_POSITION = {
|
var BEAM_POSITION = {
|
||||||
x: 1098.5159,
|
x: 1098.4424,
|
||||||
y: 460.0490,
|
y: 460.3090,
|
||||||
z: -66.3012
|
z: -66.2190
|
||||||
};
|
};
|
||||||
|
|
||||||
var leftHandPosition = MyAvatar.getLeftPalmPosition();
|
var leftHandPosition = MyAvatar.getLeftPalmPosition();
|
||||||
|
|
|
@ -10,30 +10,20 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
var RESETTER_POSITION = {
|
|
||||||
x: 1098.5159,
|
|
||||||
y: 460.0490,
|
|
||||||
z: -66.3012
|
|
||||||
};
|
|
||||||
|
|
||||||
BlockyGame = function(spawnPosition, spawnRotation) {
|
BlockyGame = function(spawnPosition, spawnRotation) {
|
||||||
|
|
||||||
var scriptURL = "atp:/blocky/blocky.js";
|
var scriptURL = "atp:/blocky/blocky.js";
|
||||||
|
|
||||||
var blockyProps = {
|
var blockyProps = {
|
||||||
type: 'Box',
|
type: 'Model',
|
||||||
|
modelURL:'atp:/blocky/swiper.fbx',
|
||||||
name: 'home_box_blocky_resetter',
|
name: 'home_box_blocky_resetter',
|
||||||
color: {
|
|
||||||
red: 0,
|
|
||||||
green: 0,
|
|
||||||
blue: 255
|
|
||||||
},
|
|
||||||
dimensions: {
|
dimensions: {
|
||||||
x: 0.25,
|
x: 0.2543,
|
||||||
y: 0.25,
|
y: 0.3269,
|
||||||
z: 0.25
|
z: 0.4154
|
||||||
},
|
},
|
||||||
rotation:Quat.fromPitchYawRollDegrees(-0.0029,32.9983,-0.0021),
|
rotation:Quat.fromPitchYawRollDegrees(-9.5165,-147.3687,16.6577),
|
||||||
script: scriptURL,
|
script: scriptURL,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
"grabbableKey": {
|
"grabbableKey": {
|
||||||
|
|
|
@ -342,9 +342,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
var blocky = new BlockyGame({
|
var blocky = new BlockyGame({
|
||||||
x: 1098.5159,
|
x: 1098.4424,
|
||||||
y: 460.0490,
|
y: 460.3090,
|
||||||
z: -66.3012
|
z: -66.2190
|
||||||
})
|
})
|
||||||
|
|
||||||
print('HOME after creating scripted entities')
|
print('HOME after creating scripted entities')
|
||||||
|
|
Loading…
Reference in a new issue