Flint Particle System Forum - Collision Radius set to 1 pixel when using a custom display object2011-12-12T22:25:53+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Collision Radius set to 1 pixel when using a custom display objecthttp://flintparticles.org/forum/comments.php?DiscussionID=129&Focus=504#Comment_5042008-11-14T22:52:41+00:002011-12-12T22:25:53+00:00iworkinprogresshttp://flintparticles.org/forum/account.php?u=102
I added the below code to Particle2DUtils.createParticle2DFromDisplayObject to sync up the collision radius of my particles with the display object they are based upon. Otherwise the collision radius ...
// make new particles have the same radius as the width of the display object particle.collisionRadius = obj.width/2; //
right above: particle.image = obj; return particle;]]>
Collision Radius set to 1 pixel when using a custom display objecthttp://flintparticles.org/forum/comments.php?DiscussionID=129&Focus=509#Comment_5092008-11-17T12:42:58+00:002011-12-12T22:25:53+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
Good idea. I've added it (using the average of width and height) in createParticle2DFromDisplayObject and createRectangleParticlesFromBitmapData.
Thanks
Thanks]]>