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)
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 LoginAdvertisement