Particules forming a shape.

13 views
Skip to first unread message

WaZz

unread,
Jan 14, 2011, 12:56:41 PM1/14/11
to Stardust Particle Engine
What I would like to do is create a shape which is black & white.
Then, generate particules that fill up and stay within that black
shape. Finally tween that shape(through the timeline) and keep all
particules within the black shape

Is it possible to do that, or is it more a job for box2d ?

Allen Chou

unread,
Jan 14, 2011, 1:02:44 PM1/14/11
to stardust-par...@googlegroups.com
You may check out the TextSpark example which uses the BitmapZone
class for generating position vectors based on the non-transparent
pixels of a bitmap. You may provide a bitmap where the pixels of zero
alpha mark the positions you don't want particles to pop out, while
non-transparent pixels are where particles would come out.
Reply all
Reply to author
Forward
0 new messages