From 1837a5f80d08bcadbdf497f97ebf31a90b6f6484 Mon Sep 17 00:00:00 2001
From: stendler <stendler@mi.fu-berlin.de>
Date: Mon, 5 Feb 2018 20:24:41 +0100
Subject: [PATCH] revert localPosition transform - fixes memstones moving out
 of vision

.. for no reason.

Localpositon was the idea to place them as a child of the visible area and translate within there.
BUT we might need to also calculate the destination relative to the parent.
Too complicated for now. we just hope space orientation/real-virtual mapping works without actively trying to enforce this. (rotating the visible area with memstone to the compass)
---
 Assets/MemoryBox/arScene/Scripts/Memstone.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Assets/MemoryBox/arScene/Scripts/Memstone.cs b/Assets/MemoryBox/arScene/Scripts/Memstone.cs
index 5a768e5..8eed510 100644
--- a/Assets/MemoryBox/arScene/Scripts/Memstone.cs
+++ b/Assets/MemoryBox/arScene/Scripts/Memstone.cs
@@ -30,7 +30,7 @@ namespace MemoryBox.arScene.Scripts
 		// Update is called once per frame
 		private void Update () {
 			// move relative to player gps
-			transform.localPosition = Vector3.MoveTowards(transform.position, _transformLocation, 0.1f);
+			transform.position = Vector3.MoveTowards(transform.position, _transformLocation, 0.1f);
 		}
 
 		/**
-- 
GitLab