Latest Uploads
Merry Christmas

Jayenkai

Invasion V ... tup screen

rychan

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

Jayenkai

PixeLink - ... oween 2014

rockford

PixeLink P ... zle Editor

rockford

PixeLink

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
Smash Bros 3DS/WiiU
Jayenkai Sat 09:31
NerdBlock
rockford Sat 06:42
Advent Calendars 2014
rockford Sat 06:36
Festive Pics
Jayenkai Fri 09:34
Penguin Party
rychan Fri 04:17
Christmas Poo
Jayenkai Thu 18:43
iOS dev on Windows.
steve_ancell Thu 14:33
Foodless
rychan Thu 13:52
Cold Neck = Sore Neck
rockford Thu 11:30
OUYA Download Stats
rychan Thu 09:40
More

Latest Items
News : Newsletter #245
rychan Fri 06:36
Showcase : GPS Fun Runner 3D
zzoom Wed 15:35
Showcase : Santa's Workout 2
Jayenkai Wed 08:10
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
News : Newsletter #241
steve_ancell Thu 20:46
Snippet : Monkey Framework - HTML Layout
steve_ancell Thu 08:35
Woot : : Update on hand issues
rychan Fri 10:00
:
Wed 17:00
More

Who's Online
rockford
Sat, at 15:02
Jayenkai
Sat, at 14:37
spinal
Sat, at 13:11
blanko1324
Sat, at 12:43
9572AD
Sat, at 12:03
steve_ancell
Sat, at 10:54
CodersRule
Sat, at 09:44
shroom_monk
Sat, at 04:01
rychan
Fri, at 16:46
zzoom
Fri, at 15:55
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.