sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    Toggling Thrusters?

    Scheduled Pinned Locked Moved SketchyPhysics
    8 Posts 5 Posters 1.3k 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
      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
        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
          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
            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
              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
                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
                  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
                    MrPlanet
                    last edited by

                    Mmmmmmm... Catnip 🤣 🤣 🤣

                    I reject your reality and substitute my own.

                    1 Reply Last reply
                    Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 1 / 1
                    • First post
                      Last post
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement