spawn an object fixated to the backround
4 posts • Page 1 of 1
spawn an object fixated to the backround
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.
-
canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
Re: spawn an object fixated to the backround
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
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:
example:
- Code: Select all
scene.addcircle({ pos := e.pos; radius := 0.1; body := 0 })
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: spawn an object fixated to the backround
thank's, now i may proceed with my project SMILEY SPAM!!
-
canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests