summaryrefslogtreecommitdiff
path: root/map2globe.py
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-03-19 04:51:01 -0500
committerepoch <epoch@hacking.allowed.org>2017-03-19 04:51:01 -0500
commit781ecd6529505e4bf1fd400634ee83bcb9a07c81 (patch)
treea5f51756d54dff5ebb47f5435198e1db15ce345d /map2globe.py
parent17347b2e23292aad11c879d3df4a0e73c31e2ae8 (diff)
downloadhackvr-781ecd6529505e4bf1fd400634ee83bcb9a07c81.tar.gz
hackvr-781ecd6529505e4bf1fd400634ee83bcb9a07c81.zip
I have no idea why I am doing this...
Diffstat (limited to 'map2globe.py')
-rwxr-xr-xmap2globe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/map2globe.py b/map2globe.py
index 8e58752..7b8ffb0 100755
--- a/map2globe.py
+++ b/map2globe.py
@@ -16,7 +16,8 @@ z="0"
# / 90 * math.pi
#they need to be in the range 0 to 2pi?
-print("globe addshape 1 0 0 0 1 -1 0")
+print("globe addshape 1 0 0 0 0 1 0")
+rotation=0
while(1):
#print (plat,plon,lat,lon)
@@ -42,6 +43,9 @@ while(1):
break
if(lat and lon and x and y and z and plat and plon and px and py and pz): #if the previouses exist
print("globe addshape 3 " + x + " " + y + " " + z + " " + x + " " + y + " " + z + " " + px + " " + py + " " + pz)
+ print("globe rotate 0 " + str(rotation) + " 0")
+ rotation+=1
+ rotation%=360
#set previouses to currents
(plat,plon,px,py,pz)=(lat,lon,x,y,z)