From 8f2d5cfd625ce07d0c6aee5b7c5bd586c1acddba Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Thu, 28 Dec 2023 14:07:02 -0500 Subject: [PATCH] Fix initial position of the doppleganger Fix initial position of the doppleganger --- tutorial/doppleganger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/doppleganger.js b/tutorial/doppleganger.js index 9a107b2..e7a4160 100644 --- a/tutorial/doppleganger.js +++ b/tutorial/doppleganger.js @@ -172,7 +172,7 @@ Doppleganger.prototype = { } this.frame = 0; - this.position = options.feetPosition || Vec3.sum(avatar.feetPosition, Quat.getForward(avatar.orientation)); + this.position = options.position || Vec3.sum(avatar.feetPosition, Quat.getForward(avatar.orientation)); this.orientation = options.orientation || avatar.orientation; this.skeletonModelURL = avatar.skeletonModelURL; this.jointStateCount = 0;