springs

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

springs

Postby mrmegawarrior » Thu Dec 09, 2010 2:30 am

How do i set limits for springs?
mrmegawarrior
 
Posts: 80
Joined: Wed Aug 25, 2010 6:25 am

Re: springs

Postby Mystery » Fri Dec 10, 2010 4:07 am

Limits have not yet been implemented.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: springs

Postby mrmegawarrior » Fri Dec 10, 2010 4:36 am

I've seen them on plenty of other scenes. Here's an example: http://www.algodoo.com/algobox/details.php?id=49131
mrmegawarrior
 
Posts: 80
Joined: Wed Aug 25, 2010 6:25 am

Re: springs

Postby Mystery » Fri Dec 10, 2010 6:26 am

Not a real limit he just stopper the spring going past a certain length. You can still stretch it as far as you want.
To replicate.
Code: Select all
{scene.my.spring < 10}?{scene.my.spring = scene.my.spring + 0.1}:{}

IF spring length is less then 10 THEN spring length + 0.1 ELSE do nothing.

This code will stop adding length to the spring once it is past 10 meters in length.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: springs

Postby mrmegawarrior » Fri Dec 10, 2010 7:18 am

sorry i guess i meant a "stopper" not a limit.
THX!
mrmegawarrior
 
Posts: 80
Joined: Wed Aug 25, 2010 6:25 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 8 guests