energyplug / droidar

Automatically exported from code.google.com/p/droidar
0 stars 0 forks source link

Override droidar geolocation #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I want to know where I can find DroidAR geolocation code so I can take a 
look and understand how it works. Besides, I'd like to know if this code can be 
overriden by a custom class or method. If so, how should I do it? Is it 
possible to toggle DroidAr's location on and off? How?

I'd also like to know if it's possible to override the default layout that 
DroidAR offers with a custom one.

Thanks in advance.

Original issue reported on code.google.com by ogami...@gmail.com on 1 Jun 2012 at 6:47

GoogleCodeExporter commented 8 years ago
For the geolocation code, first watch the screencasts, then take a look at the 
GeoObj and the GeoUtils class. Also the EventManager system is important to 
understand how the GPS position is passed to the virtual world. Then take a 
look at ActionCalcRelativePos and then you should understand how the gps pos is 
mapped to the virtual position.

The layout can be overriden in any Setup class by implementing the _e1_.. 
method yourself (and not calling super._e1_..) take a look at the default 
implementation and the javadoc of the e1 method.

Original comment by simon.heinen on 2 Jun 2012 at 10:47