It looks like you're new here. If you want to get involved, click one of these buttons!
Today, After working for 3 hours, I have made my first library: CodeaBalls !
It let's you create soft bodies/balls, But they are not light, They use alot of cpu.
Import Project Code: https://gist.github.com/RamiLego4Game/5cd265bbb238a58fd695
If you want to try the demo, Run the project, Or import it in your game.
Video: https://youtu.be/mHJkGhA8Gt0
Do not set high frequency for the ball or you'll get something like this: https://youtu.be/1J4qipDaQBk
Thanks for IndieRetro/Shorefire (In love2d.org) for creating the tutorial in his blog: http://www.indieretro.co.uk/blog/2015/2/4/softbody-physics-with-box2d
Note: I'm using meshes to fill the ball !
Comments
Give feedback if possible
@RamiLego4Game - nice work!
The ball doesn't seem to deform when it hits the sides or top - I guess there's always room for improvement!
Pretty cool!
@Ignatz If you want the ball to deform when it hits the sides, you need to turn down the frequency.
exceeding, soft ball is more interesting than hard ball
Thanks for feedback everyone