WIP: Scripted aircraft
-
Same principal as the FPS rig, and the first use I've found for setTorque. Basically, this is just a really easy plane to fly, which I'll be adding bits of script to, to make the whole thing more realistic (it's a little on the arcadey side). The whole rig consists of a single group for the plane, and two camera objects, so it's very effecient as well. You need a 360 style joypad to play:
Throttle - Analog triggers
Yaw - Left stick
Pitch/Roll - Right stickI'm having trouble getting gravity in. It creates an exponentially increasing/decreasing value, with some very strange results, and I can't see a way around it (for now).
-
It's nice! Can I fully control it with my PS3 controler?
-
Nice! The only real thing that I have a reason to complain for is the non-conventional pitch control: The control you are using should be reversed, so moving the stick up forces the plane down. Plus, you have completely melted my brain with your scripting. Interpretation isn't too easy.
-
Recently I was thinking about simulating wings. It think it is possible to script (in SP3x) a "wing". It would be an object that would use its past and current position,rotation and speed to figure out angle of attack. Once you have that you could easily figure out lift and drag and use push() to make it act something like a real wing. Connect to a body with a thruster and you get a plane. Connect them with servos and you could make ailerons and rudder.
In theory.
Advertisement