   2d Physical engine for ball deformation
  Hi, i looking for 2d free physical engine (even for commercial use), which allows ball deformation...can you recommend me any?I don't have any experiance with physical engines, so I don't know if engines like Box2d, Chipmunk etc. allows to do that. From demonstration videos I can only see interaction between different object, but not one object modification thank you :)[Edited by - liquid11111 on May 6, 2010 1:24:47 PM]
  google box2d blob, someone did a blob ball using box2d and it kept is volume so it might work like you want.   ;  i have found just a few pages and it was something different.I need something like thishttp://www.dannysouthard.com/AM/Term1/Session103/Session_103_BouncingBallThumbs.jpg ball bouncing, deformation, stretching etc...   ;  Check these code samples out. With this damped soft body model you can make anything from water balloons and sand bags to footballs and soap bubbles. Full code::blocks project, source, and win exe.http://www.jernmager.dk/stuff/cpp/softbody_glfw.ziphttp://www.jernmager.dk/stuff/cpp/soft_body_03.zipIf you are having trouble understanding how it works, just ask.cheers,Mike[Edited by - h4tt3n on May 8, 2010 7:41:37 AM];  You can simulate basic squashing and streching by scaling the ball by a fraction of it's speed along one axis, and scaling the other way over the other axis by the same amount.;  The book Game Physics Engine Development calls them blob games and shortly mentions the approach:You connect together a set of particles with spring joints or even stiff ones (rods).I bet any 2D engine supporting these joints will be able to handle that. But getting your "spring-mesh" right - and even controlling it the way you want - might prove tricky (masses, spring constants, which masses to join, restlengths, collision masks).By the way: I can't quite tell if you really want to make some game/simulation like Gish or just want a "realastic" appearance of your ball, like your drawing suggests. For the latter you probably can resort to a (far simpler) animation like Kirl said.(Edit) @ h4tt3n: This is fun stuff, thanks for sharing. [smile][Edited by - unbird on May 8, 2010 12:06:18 PM]