Spawning glued objects
4 posts • Page 1 of 1
Spawning glued objects
How can I add a box that's glued to the background?
this code...
...doesn't work. It gets spawned but not glued.
this code...
- Code: Select all
scene.addBox({ pos := app.mousepos; glued := true })
...doesn't work. It gets spawned but not glued.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Spawning glued objects
- Code: Select all
density := +inf
That is how i always make things glued
-
niffirg1 - Posts: 376
- Joined: Mon Aug 31, 2009 10:31 pm
- Location: The Great American South!
Re: Spawning glued objects
You can use body := 0 that's the way I do it.
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Spawning glued objects
Oh yeah of course... I didn't think of density := +inf
Both codes work pretty well but I like body := 0 better because with this code it really is glued to the background.
Thanks guys!
Both codes work pretty well but I like body := 0 better because with this code it really is glued to the background.
Thanks guys!
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests