mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 12:15:30 +02:00
adjust gun dimensions in toybox master script
This commit is contained in:
parent
1ff5f11e29
commit
01044e3c05
1 changed files with 5 additions and 5 deletions
|
@ -98,7 +98,7 @@ function createAllToys() {
|
||||||
function deleteAllToys() {
|
function deleteAllToys() {
|
||||||
var entities = Entities.findEntities(MyAvatar.position, 100);
|
var entities = Entities.findEntities(MyAvatar.position, 100);
|
||||||
|
|
||||||
entities.forEach(function (entity) {
|
entities.forEach(function(entity) {
|
||||||
//params: customKey, id, defaultValue
|
//params: customKey, id, defaultValue
|
||||||
var shouldReset = getEntityCustomData(resetKey, entity, {}).resetMe;
|
var shouldReset = getEntityCustomData(resetKey, entity, {}).resetMe;
|
||||||
if (shouldReset === true) {
|
if (shouldReset === true) {
|
||||||
|
@ -468,9 +468,9 @@ function createPingPongBallGun() {
|
||||||
z: 0
|
z: 0
|
||||||
},
|
},
|
||||||
dimensions: {
|
dimensions: {
|
||||||
x: 0.67,
|
x: 0.08,
|
||||||
y: 0.14,
|
y: 0.21,
|
||||||
z: 0.09
|
z: 0.47
|
||||||
},
|
},
|
||||||
collisionsWillMove: true,
|
collisionsWillMove: true,
|
||||||
});
|
});
|
||||||
|
@ -831,4 +831,4 @@ function cleanup() {
|
||||||
if (shouldDeleteOnEndScript) {
|
if (shouldDeleteOnEndScript) {
|
||||||
|
|
||||||
Script.scriptEnding.connect(cleanup);
|
Script.scriptEnding.connect(cleanup);
|
||||||
}
|
}
|
Loading…
Reference in a new issue