|
@@ -241,10 +241,12 @@ namespace Immersal.AR
|
|
|
}
|
|
|
}
|
|
|
public static bool isFind;
|
|
|
- public static void UpdateSpace(SpaceContainer space, Vector3 pos, Quaternion rot)
|
|
|
+ private static Vector3 tempVec = Vector3.zero;
|
|
|
+ public static void UpdateSpace(SpaceContainer space, Vector3 pos, Quaternion rot)
|
|
|
{
|
|
|
- if(pos!=Vector3.zero)
|
|
|
+ if(pos!=tempVec)
|
|
|
{
|
|
|
+ tempVec = pos;
|
|
|
isFind = true;
|
|
|
}
|
|
|
if (space == null)
|
|
@@ -255,6 +257,13 @@ namespace Immersal.AR
|
|
|
Transform tr = spaceToTransform[space];
|
|
|
tr.SetPositionAndRotation(pos, rot);
|
|
|
|
|
|
+ tr.eulerAngles = new Vector3(0,tr.eulerAngles.y,0);
|
|
|
+
|
|
|
+ if(tr.position.y>0.5f)
|
|
|
+ {
|
|
|
+ tr.position = new Vector3(tr.position.x, 0.5f, tr.position.z);
|
|
|
+ }
|
|
|
+ */
|
|
|
}
|
|
|
}
|
|
|
}
|