Simple clutch in SketchyPhysics?
-
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?
-
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.
-
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!
-
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?
Advertisement