mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +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 forwardOffset = Vec3.multiply(forwardUnitVector,forwardFactor);
|
||||
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);
|
||||
if (success) {
|
||||
this.pastedEntityIDs = Clipboard.pasteEntities(spawnLocation);
|
||||
|
|
Loading…
Reference in a new issue