spawning balls that twist??

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

spawning balls that twist??

Postby jessebax129 » Tue Jun 22, 2010 6:59 pm

hi i know how to spawn balls with a velocity [x,y]
Code: Select all
(e)=>{scene.addcircle({pos:=e.pos; vel:= [x,y]; ..............})
but how to i make it twist/turn around?
jessebax129
 
Posts: 34
Joined: Tue Jan 05, 2010 6:32 pm

Re: spawning balls that twist??

Postby REMqb » Tue Jun 22, 2010 7:06 pm

The variable name is angvel :)
Code: Select all
(e)=>{scene.addcircle({pos:=e.pos; vel:= [x,y]; angvel:=z})
REMqb
 
Posts: 15
Joined: Wed Dec 30, 2009 7:51 pm
Location: France

Re: spawning balls that twist??

Postby Mystery » Wed Jun 23, 2010 10:33 am

You can read the full list of internal variables here
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests