mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 07:51:01 +02:00
eraser positioned correctly
This commit is contained in:
parent
22a5f3dcc0
commit
4de951242c
1 changed files with 27 additions and 1 deletions
|
@ -104,6 +104,32 @@ var eraser = Entities.addEntity({
|
||||||
y: -0.1,
|
y: -0.1,
|
||||||
z: 0
|
z: 0
|
||||||
},
|
},
|
||||||
|
userData: JSON.stringify({
|
||||||
|
wearable: {
|
||||||
|
joints: {
|
||||||
|
RightHand: [{
|
||||||
|
x: 0.0207,
|
||||||
|
y: 0.1202,
|
||||||
|
z: 0.0493
|
||||||
|
}, {
|
||||||
|
x: 0.1004,
|
||||||
|
y: 0.6424,
|
||||||
|
z: 0.717,
|
||||||
|
w: 0.250
|
||||||
|
}],
|
||||||
|
LeftHand: [{
|
||||||
|
x: -0.005,
|
||||||
|
y: 0.1101,
|
||||||
|
z: 0.053
|
||||||
|
}, {
|
||||||
|
x: 0.7234,
|
||||||
|
y: 0.289,
|
||||||
|
z: 0.142,
|
||||||
|
w: 0.610
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
createMarkers();
|
createMarkers();
|
||||||
|
@ -206,7 +232,7 @@ function createMarker(modelURL, markerPosition, markerColor) {
|
||||||
var modelURL = Entities.getEntityProperties(marker, "modelURL").modelURL;
|
var modelURL = Entities.getEntityProperties(marker, "modelURL").modelURL;
|
||||||
|
|
||||||
Entities.callEntityMethod(marker, "setProperties", [JSON.stringify(data)]);
|
Entities.callEntityMethod(marker, "setProperties", [JSON.stringify(data)]);
|
||||||
}, 3000)
|
}, 5000)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue