How to Use the "Math" command?

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

How to Use the "Math" command?

Postby faytree » Sun Aug 24, 2014 1:35 am

Hey Guys,
can you guys teach me how to use Math. commands like And others.Please upload an example code too(it will make me understand better when you guys teach me).
Thank you for reading this,
faytree
waiting for semester break to come...
User avatar
faytree
 
Posts: 947
Joined: Mon Nov 05, 2012 1:37 pm
Location: Selangor, Malaysia

Re: How to Use the "Math" command?

Postby Matten » Sun Aug 24, 2014 8:36 am

Gradyfitz made a whole list of all variables and names in Algodoo. You can find it here: viewtopic.php?f=13&t=83

Sroll down until you find the math.* part. Also, most names are pretty self-descriptive such as math.pi which represents pi, and math.toInt which converts a number to an integer.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: How to Use the "Math" command?

Postby faytree » Sun Aug 24, 2014 10:00 am

Cool,Thanks!
waiting for semester break to come...
User avatar
faytree
 
Posts: 947
Joined: Mon Nov 05, 2012 1:37 pm
Location: Selangor, Malaysia


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 2 guests