How to make a wheel turn

About advanced scenes, and the Thyme scripting language used in Algodoo.

How to make a wheel turn

Postby dsengere » Thu Oct 22, 2009 8:07 pm

How can I make a wheel (tire) turn if and only if object (marble) is touching an object (floor)

I have absolutely no knowledge of thyme. Could someone please walk me through it in a step-by-step manner? THANK YOU.
dsengere
 
Posts: 12
Joined: Thu Oct 22, 2009 5:49 pm

Re: How to make a wheel turn

Postby Rhett97 » Fri Oct 23, 2009 7:05 am

Well.. you could use some variables to change a motor speed...
so..
1.press the ~ key
2. type in: "Scene.my.eng1 = 15.0"
3.Make your tire/engine
4. Go to the script menu of the tire hinge and where it says "Motor spped" Change the variable in it to: "{Scene.my.eng1}"
5.Make a collider of some sorts
6.go to the script menu of the collider
7.Where it say "Oncollide" Put this in: "{Scene.my.eng1 = 0.0;scene.my.15.0}"

(note take out all quotations...)
Chronos wrote:There's nothing wrong with swearing. They're just words. People just think they have a bad meaning. What's the difference between shit and poo? Nothing. They're the same.
User avatar
Rhett97
 
Posts: 522
Joined: Mon Aug 31, 2009 10:32 pm

Re: How to make a wheel turn

Postby Sniperkasa » Fri Oct 23, 2009 2:43 pm

I think you allready asked this in another post.. and I already gave you the ansver?
Might be im wrong though..
Also you could use CCW value false / true.. If you want it to turn other way
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 6 guests

cron