LuminAR Code Docs
Code documentation for the LuminAR Plugins, developed for Luminary Technology. For the AUT 2015, BCIS Project Course
|
Public Member Functions | |
string | getUserLocation () |
void | setUserLocation (string location) |
Private Member Functions | |
void | Start () |
void | Update () |
Private Attributes | |
AndroidJavaClass | gpsActivityJavaClass |
Static Private Attributes | |
static string | userLocation |
static float | xValue |
static float | yValue |
static float | zValue |
static float | degrees |
Accessing the GPS Data over JNI calls Please check the Java sources under Plugins/Android
string GPSManager.getUserLocation | ( | ) |
void GPSManager.setUserLocation | ( | string | location | ) |
|
private |
The start method that attaches the .jar plugin to the unity thread to access the java functions.
|
private |
The update functions in Unity is called multiple times a second. This function is used to get the bearing of the user and display it updates with the update function call in unity. This function also grabs the user location and displays that to the user. It also updates accordingly.
|
staticprivate |
Float that stores the bearing of the user in degrees (0-360).
|
private |
AndroidJavaClass that will access the .jar for android functions.
|
staticprivate |
This class is the bridge between the Unity plugins and the JAVA plugin that does the Android functions. The functions in this class are used by the other Plugins.
|
staticprivate |
Float that stores x value for the user's bearing.
|
staticprivate |
Float that stores y value for the user's bearing.
|
staticprivate |
Float that stores z value for the user's bearing.