 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
SamTyson92
Joined: 16 Dec 2006 Posts: 34 Location: Hinckley, United Kingdom
Digg It |
Posted: Fri Sep 14, 2007 11:29 pm Post subject: Google Earth Flight Simulator Script Request |
|
|
As I don't do much scripting these days I was wondering if anyone is working on/or has made a script for controlling the Google Earth Flight Simulator, if not then I may do one myself as the keyboard controls are too confusing.
 |
|
| Back to top |
|
 |
xisde
Joined: 30 Jun 2007 Posts: 1
Digg It |
Posted: Wed May 07, 2008 5:50 pm Post subject: |
|
|
Uow, that would be fantastic a script with motion sense *---*
Well, if anyone wanna try, see te controls and how to open the simulator here
earth . google . com / intl / en / userguide / v4 / flightsim / index . html |
|
| Back to top |
|
 |
3picide
Joined: 20 Aug 2007 Posts: 10 Location: My closet....
Digg It |
Posted: Sun May 18, 2008 9:50 pm Post subject: |
|
|
Here is a rather simple one I threw together. I know it's not very good; I literally threw it together in about 5 minutes at the most. I'll probably end up tweaking it more as time goes by, but it does work pretty decently. Even at this stage, it is easier to fly with this compared to the mouse.
I designed this using the Wii Wheel (the one that typically comes with Mario Kart), so the roll/pitch is based off of that. Therefore, laying the wii remote on its left side is the equivalent of the "dead zone". Twisting/tilting it back moves the mouse down, therefore, the plane up. Tilting forward goes forward. So on and so forth.
I haven't found the true "dead zone" for the Google Earth simulator, so even if you have it in what seems to be the center, the plane will still go up slightly. I just have to find the exact location (or rather close). Feel free to find it yourself.
B clicks the mouse to turn on/off steering. A stops/starts the plane ("pause" mode in the simulator).
I couldn't get the wiimote2 parts to work, so don't worry about it. I think my seconds wii remote won't connect right.
Once again, sorry if this is not what you were hoping/expecting, but I wanted a script for this, too, and, admittedly, I'm not that good with scripting yet.
If any other devs have a suggestion/correction, feel free to modify or suggest.
I don't know if I'll ever update this (I'm hoping/planning to). If I do, I will add more controls (probably change throttle).
| Code: | //Google Earth Flight Simulator Control designed using the Wii Wheel
//Version 0.1
//Originally designed by 3picide
//Controls:
//Tilt left, right, forward, backward to control the plane accordingly
//B turns on and off mouse control
//A stops/starts the plane ("Pause" mode)
//Steering/Right Hand Controls
//Roll Centered
if(wiimote1.Roll < -80 and > -100)
mouse.y = .5
endif
//Forward Tilt Control
if(wiimote1.Roll > -80 and < -70)
mouse.y = .45
endif
if(wiimote1.Roll > -70 and < -60)
mouse.y = .4
endif
if(wiimote1.Roll > -60 and < -50)
mouse.y = .35
endif
if(wiimote1.Roll > -50 and < -40)
mouse.y = .3
endif
//Backward Tilt Control
if(wiimote1.Roll < -100 and > -110)
mouse.y = .55
endif
if(wiimote1.Roll < -110 and > -120)
mouse.y = .6
endif
if(wiimote1.Roll < -120 and > -130)
mouse.y = .65
endif
if(wiimote1.Roll < -130 and > -140)
mouse.y = .7
endif
//Pitch Centered
if(wiimote1.Pitch < 5 and > -5)
mouse.x = .5
endif
//Left Tilt Control
if(wiimote1.Pitch < -10 and > -20)
mouse.x = .45
endif
if(wiimote1.Pitch < -20 and > -30)
mouse.x = .4
endif
if(wiimote1.Pitch < -30 and > -40)
mouse.x = .35
endif
if(wiimote1.Pitch < -40 and > -50)
mouse.x = .4
endif
//Right Tilt Control
if(wiimote1.Pitch > 10 and < 20)
mouse.x = .55
endif
if(wiimote1.Pitch > 20 and < 30)
mouse.x = .6
endif
if(wiimote1.Pitch > 30 and < 40)
mouse.x = .65
endif
if(wiimote1.Pitch > 40 and < 50)
mouse.x = .7
endif
//Throttle/Left Hand Controls
keyboard.PageUp = wiimote2.Roll < 55
keyboard.PageDown = wiimote2.Roll > 125
//Various Controls
mouse.LeftButton = wiimote1.B
key.Space = wiimote1.A | [/code] _________________ ~~~3picide~~~ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|