- Home /
Augmented Reality and Location
Hi there,
So I am very new to Unity. I am wondering if there is a Unity plugin that does AR, but uses your location. So, I can create an object in a specific point in the world and it will use the devices location and compass to determine if the object should be draw.
Regards, Dom
Answer by ejpaari · Oct 19, 2013 at 08:37 AM
I think there is not such a plugin available. Of course you can browse Unity Asset Store (https://www.assetstore.unity3d.com/) to make sure.
On the other hand you can create such feature by yourself. You can get the location with LocationInfo (latitude & longitude) and convert that location to your Unity scene coordinate system. The looking direction you can get from Compass and set that direction to your camera in Unity scene. Here are the references to LocationInfo and Compass:
http://docs.unity3d.com/Documentation/ScriptReference/Compass.html http://docs.unity3d.com/Documentation/ScriptReference/LocationInfo.html
It is not very complicated but on the other hand it is now very precise. Depending where you are the location accuracy is like 5 meters at best (the altitude can vary even tens of meters). The compass direction accuracy is something like 5 degress and there is a little lag as well. The GPS & compass method works but depending on what you need it may not be precise enough. You can look for Nokia City Lens to get the idea what you can achieve at best with this method.
Your answer
Follow this Question
Related Questions
gc: too many threads, crash using Unity 4.2 8 Answers
unity 4.2 crash particle system 0 Answers
Why is Unity stuttering and stopping seconds? 0 Answers
Unity 4.2 -> 4.3 with oculus pro trial 0 Answers