Flint Particle System Forum - Collision Radius set to 1 pixel when using a custom display object 2011-12-12T22:25:53+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Collision Radius set to 1 pixel when using a custom display object http://flintparticles.org/forum/comments.php?DiscussionID=129&Focus=504#Comment_504 2008-11-14T22:52:41+00:00 2011-12-12T22:25:53+00:00 iworkinprogress http://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 object http://flintparticles.org/forum/comments.php?DiscussionID=129&Focus=509#Comment_509 2008-11-17T12:42:58+00:00 2011-12-12T22:25:53+00:00 Richard http://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]]>