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

    Toggling Thrusters?

    Scheduled Pinned Locked Moved SketchyPhysics
    8 Posts 5 Posters 917 Views 5 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.
    • B Offline
      BLANK
      last edited by BLANK

      Hi. The whole SP3 thing is a huge improvement over the previous one and there doesn't seem to be a "SP For Dummies: Toddler Edition" anywhere that explains the scripts in plain english.

      So I was wondering if there's a way of turning on/off a thruster with a keystroke? I understand that it's possible (with Wacov's code) for emitters, but not the same case for thrusters. Tried my best with the guessing, but no success. Help?

      If only the Yakuza had heard of Australia... [url=http://sketchup.google.com/3dwarehouse/details?mid=cd46471677a3e490b8f4e95477ed5df:21uuz2ul]Ford Falcon sedan conversion[/url:21uuz2ul] [img:21uuz2ul]http://lh5.ggpht.com/_DXlDhsgmn6Q/S2Qi2PU4IJI/AAAAAAAAAuE/AqSICmCNiS4/s800/Untitled-1.jpg[/img:21uuz2ul]

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

        Yes there is a toggle script. http://sketchyphysics.wikia.com/wiki/Advanced by Wacov.

        Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

        1 Reply Last reply Reply Quote 0
        • B Offline
          BLANK
          last edited by

          That does work, but I don't know how to set the speed/force. Help?

          If only the Yakuza had heard of Australia... [url=http://sketchup.google.com/3dwarehouse/details?mid=cd46471677a3e490b8f4e95477ed5df:21uuz2ul]Ford Falcon sedan conversion[/url:21uuz2ul] [img:21uuz2ul]http://lh5.ggpht.com/_DXlDhsgmn6Q/S2Qi2PU4IJI/AAAAAAAAAuE/AqSICmCNiS4/s800/Untitled-1.jpg[/img:21uuz2ul]

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

            For thrusters... I am not sure.

            Try using this in 'onTick'

            push(1)
            

            Note: You can change the 1 for the value you want.

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

            1 Reply Last reply Reply Quote 0
            • M Offline
              MrPlanet
              last edited by

              (if frame==1;setVar("repeat",0);setVar("toggle",0);end;if key("space")==0;setVar("repeat",1);getVar("toggle");elsif getVar("repeat")==0;getVar("toggle");elsif getVar("toggle")==0;setVar("repeat",0);getSetVar("toggle",1);else;setVar("repeat",0);getSetVar("toggle",0);end;)*1
              
              

              The '1' at the end is thruster power
              Space is the keystroke

              Now i can haz catnipburger? 🤣

              I reject your reality and substitute my own.

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

                So you want to toggle a thruster? If you are using Wac's script, remember that the output is getVar('toggle'). I would suggest putting this in the thruster script field: getVar('toggle')*value.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BLANK
                  last edited by

                  Thank you all for your input.

                  @unknownuser said:

                  *value

                  @unknownuser said:

                  *1

                  Damn, it's that pesky little star that I kept forgetting about...

                  @unknownuser said:

                  Now i can haz catnipburger?

                  Why, yes.

                  http://images.inmagine.com/img/bananastock/bs212/vic056.jpg

                  Help yourselves.

                  If only the Yakuza had heard of Australia... [url=http://sketchup.google.com/3dwarehouse/details?mid=cd46471677a3e490b8f4e95477ed5df:21uuz2ul]Ford Falcon sedan conversion[/url:21uuz2ul] [img:21uuz2ul]http://lh5.ggpht.com/_DXlDhsgmn6Q/S2Qi2PU4IJI/AAAAAAAAAuE/AqSICmCNiS4/s800/Untitled-1.jpg[/img:21uuz2ul]

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MrPlanet
                    last edited by

                    Mmmmmmm... Catnip 🤣 🤣 🤣

                    I reject your reality and substitute my own.

                    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