spawn an object fixated to the backround

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

spawn an object fixated to the backround

Postby canadian joe » Mon Mar 08, 2010 10:52 pm

I'm not sure if someone already posted something like this but is there a way a spawn an object that automatically glues to the background. I've been playing around with this for a while but the shape always fixated to the spawner or something else.
canadian joe wrote:im just writing this so i can sig it


RicH wrote:Phun's Army.
User avatar
canadian joe
 
Posts: 115
Joined: Wed Feb 10, 2010 9:42 pm

Re: spawn an object fixated to the backround

Postby Mr_Stabby » Tue Mar 09, 2010 12:11 am

on the fixate set geom0 to 0 or more efficent way to do it would be to set the fixated objects density to +inf
Mr_Stabby
 
Posts: 155
Joined: Wed Dec 16, 2009 12:16 am

Re: spawn an object fixated to the backround

Postby KarateBrot » Tue Mar 09, 2010 1:10 am

I asked something similar a while ago and standardtoaster posted a really nice answer. For the spawned object set body to 0 so it automatically gets glued to the background.

example:
Code: Select all
scene.addcircle({ pos := e.pos; radius := 0.1; body := 0 })
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: spawn an object fixated to the backround

Postby canadian joe » Tue Mar 09, 2010 10:45 pm

thank's, now i may proceed with my project :clap: :clap: :clap: :clap: :clap: :D :D ;) :lol: :mrgreen: :mrgreen: :mrgreen: :geek: :ugeek: :ugeek: :sick: :sick: :sick: :shh: :cry: :P 8-) SMILEY SPAM!!
User avatar
canadian joe
 
Posts: 115
Joined: Wed Feb 10, 2010 9:42 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 11 guests