how to spawn polygons at point

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

how to spawn polygons at point

Postby mrmegawarrior » Thu Dec 23, 2010 2:34 am

I am trying to make a tank and i would like to know how to spawn boxes at the end of my barrel as a gun because i have no clue at all
mrmegawarrior
 
Posts: 80
Joined: Wed Aug 25, 2010 6:25 am

Re: how to spawn polygons at point

Postby Mystery » Thu Dec 23, 2010 3:13 am

viewtopic.php?f=14&t=599 basic code here
You can either make them move by editing the vel variable to be inline with the angle of the barrel or you can just get a strong negative attraction pushing it away.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: how to spawn polygons at point

Postby mrmegawarrior » Thu Dec 23, 2010 3:40 am

thanks but 1 more question. how do i set the firing angle to match the barrel?
mrmegawarrior
 
Posts: 80
Joined: Wed Aug 25, 2010 6:25 am

Re: how to spawn polygons at point

Postby Chronos » Thu Dec 23, 2010 4:43 pm

Mystery wrote:You can either make them move by editing the vel variable to be inline with the angle of the barrel or you can just get a strong negative attraction pushing it away.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: how to spawn polygons at point

Postby Mystery » Thu Dec 23, 2010 4:53 pm

Did i do something wrong?

From memory it is pretty simple if you know your math. I can't really be bother to dig around for the code look though algobox it shouldn't be hard to find.
EDIT: If you care enough you can rummage though this for the code just give credit to pixartist.
Rating: rated 9
Filesize: 29.59 kB
Comments: 46
Ratings: 64
download
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 7 guests