This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

RcCookie
RcCookie presents ...

2020/9/4

Soft-Body physics demo

This is an early state of my soft body physics. It uses my physicslActor class to use collision physics on the corners. The edges are dampened springs. If the springs deform too much, they will deform and not return to their initial length. Stiffness, damping and deformation can all be adjusted.
Collisions between objects are going to be a thing, too, but the collisions are not quite there, yet.

Use the arrow keys to move the one box around. Press space to toggle debug mode. If it’s freaking out: well, too bad FPS;-)

The higher the framerate, the smoother the softness works, and the stiffer the springs can be.
By the way: it runs smoother in the greenfoot application. I‘m getting 450+ FPS on my crappy laptop.

3837 views / 32 in the last 7 days

3 votes | 0 in the last 7 days

Tags: game simulation physics demo collision soft phyisics box

This scenario is a member of: UNiTy iN NeEd


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2020-09-04 13:21:40 UTC Improved collisions, added thumbnail
A new version of this scenario was uploaded on 2020-09-04 13:22:46 UTC Added thumbnail
A new version of this scenario was uploaded on 2020-09-04 13:23:44 UTC Fixed some visuals
A new version of this scenario was uploaded on 2020-09-04 16:28:24 UTC Added 'SoftBodyBuilder' to move easily create complex structures
A new version of this scenario was uploaded on 2020-09-04 16:31:35 UTC Improved stability on low framerates
A new version of this scenario was uploaded on 2020-09-06 14:56:14 UTC Updated thumbnail
A new version of this scenario was uploaded on 2020-09-06 14:58:19 UTC Spring physics overhaul! Allows for stiffer springs and is more stable on low framerates.
A new version of this scenario was uploaded on 2020-09-06 14:59:12 UTC Adjusted spring stiffness
A new version of this scenario was uploaded on 2020-09-06 15:00:14 UTC Adjusted spring stiffness
A new version of this scenario was uploaded on 2020-09-06 15:04:27 UTC Adjusted moving force

See all comments

Want to leave a comment? You must first log in.

Who likes this?

CathalFeeney Game/maniac Lokodo