mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:03:59 +02:00
Fix careless math mistake
This commit is contained in:
parent
dae3d55985
commit
067faad9cd
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
// photobooth.js
|
||||
// scripts/developer/utilities/render/photobooth
|
||||
//
|
||||
// Created by Howard Stearns on 2 Nov 2016
|
||||
// Created by Faye Li on 2 Nov 2016
|
||||
// Copyright 2016 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
|
@ -93,7 +93,8 @@
|
|||
var frontOffset = Vec3.multiply(frontUnitVec,frontFactor);
|
||||
var rightFactor = 3;
|
||||
var rightUnitVec = Vec3.normalize(Quat.getRight(MyAvatar.orientation));
|
||||
var spawnLocation = Vec3.sum(Vec3.sum(MyAvatar.position,frontOffset),rightFactor);
|
||||
var rightOffset = Vec3.multiply(rightUnitVec,rightFactor);
|
||||
var spawnLocation = Vec3.sum(Vec3.sum(MyAvatar.position,frontOffset),rightOffset);
|
||||
if (success) {
|
||||
this.pastedEntityIDs = Clipboard.pasteEntities(spawnLocation);
|
||||
this.processPastedEntities();
|
||||
|
|
Loading…
Reference in a new issue