Latest Uploads
Kuron Cap Get!


Merry Christmas


Invasion V ... tup screen


image-07-1 ... -20-59.jpg


PixeLink - ... oween 2014


PixeLink P ... zle Editor


Code Snippets > Collisions and Physics ( Created 12 September 2010 | Last Edited 12 September 2010)

Soft Body Physics by Scherererer | No Votes
Simple demo of roughly how soft bodies work
Written in
This demo is very rudimentary, but basically it demonstrates kind of how soft bodies work. The basic idea is to pretend that the lines connecting vertices have on them a spring and a damper. Then, when a force is exerted on some point (or series of points), that force can be reflected across the other points.

More points means more realistic looking surfaces.

Spring coefficient [0,1]: higher number->more spring, lower number->less spring

Damping coefficient [0,1]: higher number->more damping; not to be confused with less springyness.

"spring" resists displacement, whereas "damping" resists change in displacement (velocity).

The forces applied effect the change in the change in displacement (change in velocity (acceleration))

See Calculus:erivatives and Wikipedia: Damping for more on this.

The spring/dampers in this example are only connected along the square "grid" lines, however in typical/modern configurations, additional connections are made on the diagonals and over other points to compensate for polygon folding and other issues.


Latest Comments

Posted : Sunday, 12 September 2010, 23:48

ooooh, bouncy!

Homepage :
Latest Posts
AGameAWeek : Year 7 : Part One
Jayenkai Sun 16:58
Favourite Consoles
rychan Sun 14:54
Penguin Party
rychan Sun 14:33
Daily Doodles
Kuron Sun 05:36
Think before you Smurf!
steve_ancell Sat 17:29
Happy Birthday JamardaDigital
Kuron Sat 11:35
Watch Picking
rockford Fri 16:40
Cleanup on Aisle 404
Kuron Thu 13:23
My continued bad luck...
Jayenkai Wed 13:27
The Show WILL Go On
rockford Wed 13:00

Latest Items
Showcase : Flappy New Year
rychan Wed 02:49
Snippet : Simple stack-based interpreter
tbohon Wed 12:08
Link : Protolol
Afr0 Tue 10:53
Showcase : Santa's Workout 2
jayparker Tue 00:43
Dev-Diary : Stripping it All Away
Jayenkai Mon 01:57
News : Newsletter #245
rychan Fri 06:36
Showcase : GPS Fun Runner 3D
zzoom Wed 15:35
Showcase : The Biggest Snowman
rychan Mon 01:06
News : Newsletter #243
Dabz Thu 03:29
Dev-Diary : Scaling Back
rychan Wed 14:33
Showcase : Alpha Collexion
rychan Wed 06:23
Life : Health Update
rockford Thu 12:41
Blog : Powerball Hack
steve_ancell Tue 18:47
Hols : Advent Calendars
rychan Wed 04:56
Life : MIA until better
Jayenkai Mon 07:03

Who's Online
Sun, at 19:28
Sun, at 18:52
Sun, at 17:59
Sun, at 16:16
Sun, at 15:19
Sun, at 15:17
Sun, at 11:29
Sun, at 10:21
Sun, at 10:00
Sun, at 00:23
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.