Hacker News new | ask | show | jobs
by hngiszmo 4171 days ago
demo request:

I want a demo where the user can control a soft body ball such that the ball is comprised of chain segments, connected with string constant k. The pressure of the ball would be calculated depending on the area enclosed by the chain's polygon and would be applied to each segment equally, to the outwards side. Controls would be left/right as a simple added force to all segments of the ball. Jump would be increased air amount (target surface area) and crouch would be decreased k. In my imagination, the ball would be low friction and would grow throughout the game, to take on bigger adversaries.

(Sharing it here cause I didn't get to code it in years but I would really love to see if the control would work.)

3 comments

When I saw Gish for the first time, I thought the same but I bet they fake a lot of physics.
Maybe this is something like what you described: try the 'Blob Test' example from Box2D-html5

https://code.google.com/p/box2d-html5/

You probably want a soft body physics engine, not a rigid body one. Something that could use Verlet + pressure-based techniques, for example.
Well, I was precisely interested if it could be modeled with a chain. Otherwise thank you for you pointers.