Latest Uploads
Invasion V ... tup screen

rychan

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

Jayenkai

PixeLink - ... oween 2014

rockford

PixeLink P ... zle Editor

rockford

PixeLink

rockford

image-21-0 ... -21-29.jpg

Jayenkai

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
NerdBlock
rockford Fri 11:39
Making An Advent Calendar Collection
Jayenkai Fri 08:42
Image recognition
steve_ancell Fri 05:28
Ffffffffreeeeezinnggg ffffffeck!
steve_ancell Fri 03:58
RIP : Jimmy Ruffin
rockford Thu 08:20
Wwelcome Zzoom
rockford Thu 08:19
Saying Sorry
rockford Wed 16:01
Still using Blitz
Afr0 Wed 03:11
Insomnia
zzoom Tue 05:58
File Error
zzoom Tue 05:34
More

Latest Items
Life : Health Update
rockford Thu 12:41
Dev-Diary : Scaling Back
rychan Thu 03:55
Blog : Powerball Hack
steve_ancell Tue 18:47
Showcase : GPS Fun Runner 3D
zzoom Tue 06:03
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
News : Newsletter #240
steve_ancell Fri 05:29
Techy : My Newest Toys
Jayenkai Sun 04:16
News : Newsletter #239
Jayenkai Sat 05:34
Showcase : Preppie!
Jayenkai Fri 13:00
Rant : : I Stubbed My Toe...
steve_ancell Tue 09:47
:
Wed 17:00
More

Who's Online
Kuron
Fri, at 11:41
rockford
Fri, at 11:39
Jayenkai
Fri, at 11:29
HoboBen
Fri, at 10:44
steve_ancell
Fri, at 10:40
shroom_monk
Fri, at 10:20
rychan
Fri, at 08:29
Krakatomato
Fri, at 05:28
Afr0
Fri, at 05:01
zzoom
Fri, at 02:35
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.