Skip to content

Commit 654e0e7

Browse files
authored
Merge pull request #119 from Siddhant-Patil0203/main
AR Navigation Done
2 parents 785ebc4 + 81719bc commit 654e0e7

File tree

1,151 files changed

+239984
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,151 files changed

+239984
-181
lines changed

Assets/ARLocation.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInternal: {fileID: 0}
8+
m_GameObject: {fileID: 0}
9+
m_Enabled: 1
10+
m_EditorHideFlags: 0
11+
m_Script: {fileID: 11500000, guid: 9fdf1fc4a89fb2243b47ffffdffcc69e, type: 3}
12+
m_Name: ARLocationConfig
13+
m_EditorClassIdentifier:
14+
EarthRadiusInKM: 6372.8

Assets/ARLocation/ARLocationConfig.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ARLocation/CHANGELOG.md

Lines changed: 277 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,277 @@
1+
# 3.8.0
2+
- Added `ARLocationManager.GetGameObjectPositionForLocation` method.
3+
- Fixed locale issue with mapbox requests.
4+
5+
# 3.7.1
6+
- Added: `RenderPathLine.SetLocationPath` method.
7+
- Fixed: Route path renderer not working
8+
9+
# 3.7.0
10+
- Added `DeactivateOnLeave` property to reset the hotspot on leave.
11+
- Fixed error with `ARPlaneManager.requestedDetectionMode` in Unity 2019.4.
12+
13+
# 3.6.1
14+
- Fixed "GameObject -> AR+GPS -> Mapbox Route" game object context menu item not setting the on-screen indicator arrow sprite.
15+
- Fixed "GameObject -> AR+GPS -> Mapbox Route" game object context menu item not setting the path route renderere "Line Material".
16+
- Fixed "Can't calculate tangents, because mesh 'Widget' doesn't contain normals." warning.
17+
- Fixed corrupted "jet.mp3" file.
18+
19+
# 3.6.0
20+
- New Major Feature: Routes and Navigation powered by the Mapbox Directions API! Check our [documentation pages](https://docs.unity-ar-gps-location.com/routes/) for more information on this feature.
21+
- Fixed "'UnityWebRequest.isNetworkError' is obsolete:..." warnings.
22+
- Fixed "SceneDistance" now returns the 2D distance (that is, the distance on the xz plane).
23+
- Fixed "Assets/ARLocation/Scripts/Utils/Misc.cs(37,13) warning CS0618 'ARPlaneManager.detectionMode' is obsolete 'Use requestedDetectionMode or currentDetectionMode instead" warnings.
24+
25+
# 3.5.5
26+
- Fixed warnings and compatibility issues with Unity 2020.3 and AR Foundation 4.
27+
28+
# 3.5.4
29+
- Hability to use both raw and filtered GPS data in the `Hotspot` component.
30+
31+
# 3.5.2
32+
- Experimental feature "World Builder": Allows the user to place objects on locations interactivelly that will perstist between sessions.
33+
- Experimental feature "World Voxels": Persistent GPS-based voxel sandbox experiment.
34+
- Fixed error in `GetLocationForWorldPosition` calculations
35+
- Fixed issue when using `PlaceAtLocation.CreatePlacedInstance`
36+
37+
# 3.5.1
38+
- New feature: calculate geographical location from Unity world-position.
39+
- Fixed bug when using `PlaceAtLocation` in prefabs.
40+
41+
# 3.5.0
42+
- Fixed bug in "ARLocationDevCamera".
43+
- Genaral improved geo-location calculation methods, specially long-distance objects.
44+
- Added possibility of using user-provided, custom geo-calculation methods.
45+
46+
# 3.4.1
47+
- Fixed corrupted 'GO Map Integration.zip'file.
48+
49+
# 3.4.0
50+
- Fixed object orientation issue when placing objects at runtime.
51+
- Fixed possible crash in `ARLocationOrientation#Restart`.
52+
- Added integration with "GO Map 3D" asset, with sample scene.
53+
- Added `Show Objects After This Many Updates` option so you can control how many location updates to wait before showing the placed object.
54+
- Added `Instances` getter to `PlaceAtLocations` so you can access created instances.
55+
- Added `OnHotspotLeave` event to `Hotspot`.
56+
- Ground-plane detection on ARFoundation now listens for plane changes.
57+
58+
59+
# 3.3.2
60+
- Fixed xml-parsing issue in "Web Map Loader" component.
61+
- Fixed issue with "GroundHeight" mode when using movement smoothing.
62+
- Added "Speed" property getter for the "MoveAlongPath" component.
63+
64+
# 3.3.1
65+
- Fixed `AR Floor` prefab not rendering correctly on 2019.2+.
66+
- Fixed erros when running on Unity 2019.3b.
67+
68+
# 3.3.0
69+
- Added `Web Map Loader` component to load data from the Web Map Editor (https://editor.unity-ar-gps-location.com). For
70+
details check the docs (https://docs.unity-ar-gps-location.com/map/).
71+
72+
# 3.2.1
73+
- Fixed bug in `PlaceAtLocation#Location` setter.
74+
- Fixed event listeners not properly cleaned-up on some components.
75+
76+
# 3.2.0
77+
- Improved the Debug Mode for the `PlaceAtLocation` component.
78+
79+
Now, when Debug Mode is enabled, a line is rendered from the camera to
80+
the object, indicating it's position, and the current distance from the
81+
user to the object is displayed as a TextMesh.
82+
83+
- Added the `ARLocationManager#CurrentGroundY` variable, which returns the Y coordinate
84+
of the detected plane which is nearest to the user/camera.
85+
86+
# 3.1.1
87+
- Fixed `mainCamera` null reference on Vuforia `GroundHeight`
88+
89+
# 3.1.0
90+
- Implemented native tilt-compensated compass on Android
91+
- Fixed coroutines not being stopped in SmoothMove
92+
- Fixed PlaceAtLocation#Location setter not updating sometimes
93+
94+
# 3.0.4
95+
- Fixed null reference error when switching scenes
96+
- Fixed ground relative altitude issue
97+
98+
# 3.0.3
99+
- Moved `MagneticDeclination.jar` to ARLocation plugins folder
100+
101+
# 3.0.2
102+
- Changed AltitudeMode on sample scene
103+
104+
# 3.0.1
105+
- Fixed `3D Text` sample scene
106+
107+
# 3.0.0
108+
- Added `HelpURL` linking to documentation in components
109+
- Added `Walking Zombie` prefab
110+
- Improved AR Floor's `FollowCameraPosition` script
111+
- Adjusted default values of properties
112+
113+
# 3.0.0-beta.4
114+
- Fixed warnings on multiple Unity versions
115+
- Fixed positioning issue on `MoveAlongPath`
116+
- Fixed ground height issue on `MoveAlongPath`
117+
- Refactored `MoveAlongPath` and `PathLineRenderer`
118+
- Added `PlaceAlongPath#AltitudeMode` property
119+
120+
# 3.0.0-beta.3
121+
- Improved restart methods
122+
- PlaceAtLocation restarts with LocationProvider
123+
- Added `ARLocationProvider#OnProviderRestartEvent`
124+
- Fixed `PlaceAtLocation#Location` setter to work before `Start` is called
125+
- Fixed bug on initial placement on `PlaceAtLocation`
126+
- Added `SmoothMove#Precision` property
127+
128+
129+
130+
# 3.0.0-beta.2
131+
- Added `ARLocationOrientation#OnBeforeOrientationUpdated` event
132+
- Added custom location providers via ARGPS_CUSTOM_PROVIDER define symbol
133+
- Added `Hotspot#CurrentDistance` property
134+
- Updated documentation
135+
136+
# 3.0.0-beta.1
137+
- Added `ISessionManager` class to manage the ARSession, with implementations for Vuforia and ARFoundation.
138+
- Added `Restart` methods to ARLocationProvider, ARLocationOrientation and ARLocationManager. They will reset
139+
the components to their initial state. In particular, calling `ARLocationManager#Restart` will restart the location
140+
and orientation, and update all the objects positions.
141+
- Added `ARLocationManager#WaitForARTrackingToStart` property. When this is enabled, any location and orientation
142+
updates will only happen when the AR tracking has started.
143+
- Added `ARLocationManager#RestartWhenARTrackingIsRestored`. This will restart the AR+GPS system whenever the AR
144+
tracking is lost and regained.
145+
- Added `OnTrackingStarted`, `OnTrackingLost` and `OnTrackingRestarted` unity events to `ARLocationManager`
146+
- Added `ARLocationManager#ResetARSession` to reset both the ARSession and the AR+GPS system.
147+
148+
# 3.0.0-alpha.3
149+
- Added `PlaceAtLocation#Restart`
150+
- Added debug mode to `Hotspot`
151+
- Added `DebugMode` to `PlaceAlongPath`
152+
- Added `DebugMode` to MoveAlongPath
153+
- Added `DebugMode` to `PlaceAtLocations`
154+
- Added debug mode to `PlaceAtLocation`
155+
- Added `MoveAlongPath#Reset` method
156+
- Added `DisallowMultipleComponent` to components
157+
- Added ground height to MoveAlongPath
158+
- Removed Object button on ARLocationInfo
159+
- Small changes on RenderPathLine
160+
- Minor refactoring on PlaceAlongPath
161+
- Refactor state fields on `MoveAlongPath`
162+
- Refactored Properties on MoveAlongPath
163+
- Fixed property names on `LocationPathInspector`
164+
- Fixed bug with LocationPathInspector
165+
- Fixed MaxNumberOfUpdates issue in MoveAlongPath
166+
167+
# 3.0.0-alpha.2
168+
- Added `Hotspot` component feature
169+
- Major refactoring to remove warnings
170+
- Added native Android module to calculate true north/magnetic declination
171+
- Major improvements on PlateAtLocation and PlaceAtLocations
172+
- Added Events to PlaceAtLocation, Hotspot, ARLocationProvider, and ARLocationOrientation
173+
- Added Hotspot sample scene
174+
- Added easier interface to create PlaceAt objects via code
175+
- Changed how SmoothMove works; now all Smooth Factors go from 0 to 1
176+
177+
# 2.7.0
178+
- Fixed error due to wrong constructor name on `PlaneManager` when using Vuforia
179+
180+
# 2.6.0
181+
182+
- Updated samples to work with AR Foundation 1.5
183+
184+
# 2.5.0
185+
186+
- AR Foundation 1.5/2.0 compability. Not compatible with AR Foundation 1.0 anymore
187+
- Removed automatic session reset
188+
- Added null check for arLocationPlaneManager
189+
190+
# 2.4.0
191+
192+
- Added automatic height/altitude setting via plane detection (`UseNearestDetectedPlaneHeight` option)
193+
- Added a public `enabled` flag to enable/disable positioning in ARLocationPlaceAtLocation enhancement
194+
- Added ARLocationManager#Remove(entry)
195+
- Added enabled/disabled flag do ARLocationManager Entry
196+
- Added `offset` option to `ARLocationMoveAlongCurve` enhancement
197+
- Added exponential weighted moving average filtering enhancement
198+
- Added `LocationData` scriptable object to store geo locations enhancement
199+
- Added `MaxNumberOfMeasurements` option to `ARLocationProvider` enhancement
200+
- Added `Pause` and `Resume` methods for `ILocationProvider` enhancement
201+
- Added default value to location in `ARLocationPlaceAtLocation`
202+
- Added `Distance` and `GPSHorizontalDistance` methods `ARLocationManagerEntry`
203+
- Added `ARLocationManager#UpdatePositions`
204+
- Added `ARLocationManager#Clear`
205+
- Modified `ARLocationManager` to use System.Guuid as entry IDs
206+
- Modified `ARLocationManager#Restart` to be public
207+
- Modified `Manager#Remove` to destroy instances when `createInstance` is true
208+
- Fixed Reloading scene issues with Singletons bug
209+
- Removed native location modules for now
210+
- Fixed `ARLocationPlaceAtLocation#SetLocation` bug
211+
- Fixed `ARLocationDebugInfo` bug on entry removal
212+
- Fixed `ARLocationManager` setting position of `ARLocationRoot` instead of entry
213+
- Fixed `MaxNumberOfMeasurements` behaviour on `ARLocationProvider`
214+
215+
# 2.3.0
216+
217+
- Fixed wrong compass rotation pivot point
218+
219+
# 2.2.0
220+
221+
- Fixed mock location and dev-mode camera for in-editor development
222+
- Moved LocationProvider instantiation to `Awake`
223+
- Changed `ARLocationManager` and `ARLocationProvider` to be singleton classes
224+
- Added Linear spline interpolation for paths
225+
- Fixed compass rotation in ARLocationInfo component
226+
227+
228+
# 2.1.0
229+
230+
- Fixed issue where location authorization was not being requested on Android
231+
- Fixed issue where location was only enabled after request the next time the application
232+
was executed
233+
- Fixed issue where ARLocationPlateAtLocation#SetLocation was not updating positions
234+
235+
# 2.0.0
236+
237+
- Added native GPS module for Android
238+
- Added native GPS module for iOS
239+
- Added global package configuration in resources folder
240+
- Added easy Vuforia setup by clicking a checkbox in configuration
241+
- Added option for custom magnetic declination/offset
242+
- Added option for custom earth radius
243+
- Added option selecting distance functions
244+
- Added more filtering options for ARLocationProvider
245+
- Fixed compass tilt bug on iOS native GPS module
246+
- Added Vuforia samples package
247+
248+
# 1.2.0
249+
250+
- Added support for using Vuforia as the AR framework
251+
252+
- With this Vuforia can be used instead of AR Foundation. For that
253+
it is necessary to add am entry `ARGPS_USE_VUFORIA` in the 'Player
254+
Settings' -> 'Scripting Define Symbols' list.
255+
256+
- As far as the scene structure is concerned, we don't have a 'AR
257+
Session Origin' from AR Foundation, anymore so the
258+
'ARLocationRoot' object is placed directly in the root of the
259+
scene in this cas.e
260+
261+
- Fixed NullReferenceException throw when creating/editing an empty ARLocationPath
262+
263+
264+
# 1.1.0
265+
266+
- Fixed error when there is no debug canvas.
267+
- Improved error handling and debug logging when searching for objects and components.
268+
269+
# 1.0.1
270+
271+
- Fixed ShaderDrawer shader not working on Unity-2018.1.0.
272+
- Added API Reference and Guide PDF files.
273+
- Cleaned up unused variables in some classes.
274+
275+
# 1.0.0
276+
277+
Initial Release 🎉

Assets/ARLocation/CHANGELOG.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ARLocation/Data.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: 4d58c52ff9f122a49a289c83a1611436, type: 3}
13+
m_Name: PrefabDb
14+
m_EditorClassIdentifier:
15+
Entries:
16+
- MeshId: Cube
17+
Prefab: {fileID: 2198125378339800612, guid: 987dd04d41b1fcf4a9ed5ade4d053c88,
18+
type: 3}

Assets/ARLocation/Data/PrefabDb.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ARLocation/Data/data.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ArGpsLocationData><Entry><id>0</id><altitude>0</altitude><altitudeMode>GroundRelative</altitudeMode><name>Casa</name><meshId>Cube</meshId><movementSmoothing>0.05</movementSmoothing><maxNumberOfLocationUpdates>0</maxNumberOfLocationUpdates><useMovingAverage>false</useMovingAverage><hideObjectUtilItIsPlaced>true</hideObjectUtilItIsPlaced><lat>-23.54074889912357</lat><lng>-46.64682221477199</lng></Entry><Entry><id>1</id><altitude>0</altitude><altitudeMode>GroundRelative</altitudeMode><name>Casa02</name><meshId>Cube</meshId><movementSmoothing>0.05</movementSmoothing><maxNumberOfLocationUpdates>0</maxNumberOfLocationUpdates><useMovingAverage>false</useMovingAverage><hideObjectUtilItIsPlaced>true</hideObjectUtilItIsPlaced><lat>-23.540691385366046</lat><lng>-46.64698950748331</lng></Entry><Entry><id>2</id><altitude>0</altitude><altitudeMode>GroundRelative</altitudeMode><name>Casa03</name><meshId>Cube</meshId><movementSmoothing>0.05</movementSmoothing><maxNumberOfLocationUpdates>0</maxNumberOfLocationUpdates><useMovingAverage>false</useMovingAverage><hideObjectUtilItIsPlaced>true</hideObjectUtilItIsPlaced><lat>-23.54064345721605</lat><lng>-46.647219534961295</lng></Entry></ArGpsLocationData>

Assets/ARLocation/Data/data.xml.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)