mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
revert removing rightUnitVec
.....
This commit is contained in:
parent
216f20ed2c
commit
c7b9492620
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
||||||
var forwardUnitVector = Vec3.normalize(Quat.getForward(MyAvatar.orientation));
|
var forwardUnitVector = Vec3.normalize(Quat.getForward(MyAvatar.orientation));
|
||||||
var forwardOffset = Vec3.multiply(forwardUnitVector,forwardFactor);
|
var forwardOffset = Vec3.multiply(forwardUnitVector,forwardFactor);
|
||||||
var rightFactor = 3;
|
var rightFactor = 3;
|
||||||
|
// TODO: rightUnitVec is unused and spawnLocation declaration is incorrect
|
||||||
|
var rightUnitVec = Vec3.normalize(Quat.getRight(MyAvatar.orientation));
|
||||||
var spawnLocation = Vec3.sum(Vec3.sum(MyAvatar.position,forwardOffset),rightFactor);
|
var spawnLocation = Vec3.sum(Vec3.sum(MyAvatar.position,forwardOffset),rightFactor);
|
||||||
if (success) {
|
if (success) {
|
||||||
this.pastedEntityIDs = Clipboard.pasteEntities(spawnLocation);
|
this.pastedEntityIDs = Clipboard.pasteEntities(spawnLocation);
|
||||||
|
|
Loading…
Reference in a new issue