Latest Uploads
Kuron Cap Get!

rychan

Merry Christmas

Jayenkai

Invasion V ... tup screen

rychan

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

Jayenkai

PixeLink - ... oween 2014

rockford

PixeLink P ... zle Editor

rockford

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
Blitz
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
Jayenkai


ooooh, bouncy!

Homepage : http://AGameAWeek.com
Latest Posts
Amiga GOD is Back in 1080p!
steve_ancell Thu 17:19
Dipping My Toes in the Unity Pool
Jayenkai Thu 13:44
Unreal and Unity : Free
Hotshot Thu 12:43
Farewell Maxis
Jayenkai Thu 12:07
Pebble Time (aka Pebble 2)
Jayenkai Thu 07:07
Daily Doodles
Jayenkai Thu 03:43
MiST FPGA
rychan Thu 03:26
''Proper Sleep''?
Jayenkai Wed 15:08
Bathrooms
Jayenkai Wed 07:41
Planet of the Cats
rockford Wed 02:56
More

Latest Items
Snippet : IFS Fractal Viewer
Andy_A Mon 14:20
Snippet : Rotating Sphere
Andy_A Tue 14:25
Showcase : Futrino
Jayenkai Thu 06:16
Showcase : Millenipede
Steve Elliott Mon 17:44
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
More

Who's Online
steve_ancell
Thu, at 17:53
blanko1324
Thu, at 17:46
Hotshot
Thu, at 16:51
rockford
Thu, at 16:13
spinal
Thu, at 14:40
Jayenkai
Thu, at 14:33
Krakatomato
Thu, at 12:10
Kuron
Thu, at 11:57
shroom_monk
Thu, at 11:23
rychan
Thu, at 03:26
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.