sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    WIP: Scripted aircraft

    Scheduled Pinned Locked Moved SketchyPhysics
    4 Posts 4 Posters 601 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      Wacov
      last edited by

      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 stick

      Comes with some nice terrain

      I'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).

      http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

      1 Reply Last reply Reply Quote 0
      • J Offline
        JaViXP
        last edited by

        It's nice! Can I fully control it with my PS3 controler? πŸ˜‰

        "Giving up is way harder than trying"
        JaViXP's Rendering

        1 Reply Last reply Reply Quote 0
        • P Offline
          Physicsguy1
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • C Offline
            CPhillips
            last edited by

            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. πŸ˜„

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement