Sketchy Physics Servo help
-
Basically what I'm trying to figure out is how to make a servo spin back and forth from clockwise to counter clockwise (or vise versa)from zero degrees (being the start point)to 90 degrees (being the end point)automatically without having to manually control it. (Example of manual control to auto: Make a hinge into a motor by altering the properties in the UI console.) Any help would be great. Thanks!
-
you can do that by setting the min to 0 and the max to 90 and then putting this in the controller field
[0,1][(frame/30)%2]
you can change the 30 to any thing you want.
-
Awesome! Thanks Phy. It works perfect.
-
Nice code Phy! I love how Ruby makes such a simple concise thing possible.
-
@cphillips said:
I love how Ruby makes such a simple concise thing possible.
simple, i cant figure some of the stuff out, the best i can do is toogel script, kwyboard controls, and some frames. (although i do keep a document of all the scripts i find useful)
Advertisement