mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 21:05:04 +02:00
naming
This commit is contained in:
parent
067faad9cd
commit
ccd4fdb540
1 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||||
var button = tablet.addButton({
|
var button = tablet.addButton({
|
||||||
icon: "icons/tablet-icons/snap-i.svg",
|
icon: "icons/tablet-icons/snap-i.svg",
|
||||||
text: "TOP MODEL"
|
text: "PHOTOBOOTH"
|
||||||
});
|
});
|
||||||
|
|
||||||
function onClicked() {
|
function onClicked() {
|
||||||
|
@ -89,7 +89,8 @@
|
||||||
PhotoBooth.init = function () {
|
PhotoBooth.init = function () {
|
||||||
var success = Clipboard.importEntities(PHOTOBOOTH_SETUP_JSON_URL);
|
var success = Clipboard.importEntities(PHOTOBOOTH_SETUP_JSON_URL);
|
||||||
var frontFactor = 10;
|
var frontFactor = 10;
|
||||||
var frontUnitVec = Vec3.normalize(Quat.getFront(MyAvatar.orientation));
|
// getForward is preffered as getFront function is deprecated
|
||||||
|
var frontUnitVec = (typeof Quat.getForward === "undefined") ? Vec3.normalize(Quat.getFront(MyAvatar.orientation)) : Vec3.normalize(Quat.getForward(MyAvatar.orientation));
|
||||||
var frontOffset = Vec3.multiply(frontUnitVec,frontFactor);
|
var frontOffset = Vec3.multiply(frontUnitVec,frontFactor);
|
||||||
var rightFactor = 3;
|
var rightFactor = 3;
|
||||||
var rightUnitVec = Vec3.normalize(Quat.getRight(MyAvatar.orientation));
|
var rightUnitVec = Vec3.normalize(Quat.getRight(MyAvatar.orientation));
|
||||||
|
|
Loading…
Reference in a new issue