sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    Simple clutch in SketchyPhysics?

    Scheduled Pinned Locked Moved SketchyPhysics
    4 Posts 2 Posters 700 Views
    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.
    • S Offline
      sketchyKev
      last edited by

      Is it possible to make a simple clutch in SP, by for example changing the "damp" parameter of a hinge joint dynamically while a simulation is running using a ruby script?

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mr.K.1
        last edited by

        The static parameters are a little iffy as you would need to rewrite some basic SP functions, so I made a more roundabout example where the script simply adjusts the controller input, the clutch wont free run but the gradual power is pretty accurate.


        clutch.skp

        1 Reply Last reply Reply Quote 0
        • S Offline
          sketchyKev
          last edited by

          Thanks Mr K! Your clutch works pretty well, but unfortunately I need a clutch that can free wheel. However I learnt some new stuff about using ruby scripts so thanks again! I am working on a magnetic clutch which is almost doing what I want it to. I will probably incorporate some of your script. I had read some stuff about how difficult it is to access the static parameters when the simulation was running, but I though I would ask, just in case that issue had been resolved in SP 3.2.

          Cheers! 😎

          1 Reply Last reply Reply Quote 0
          • S Offline
            sketchyKev
            last edited by

            Just in case anyone is interested, I have attached a model using my magnetic clutch idea I mentioned earlier, combined with the helpful ruby control codes from Mr K, which allows the driven part to free-wheel when the clutch is disengaged. By changing the status of the yellow driven part in the model to "static", the clutch becomes a dynamic brake powerful enough to stop the motor. Might be an idea to have a clutch/brake joint in SP 4.0?


            magclutchK.skp

            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