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
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Invisible Munky 2
Jayenkai Fri 15:18
Gamestick
Jayenkai Fri 14:11
Pebble Watch Clocks
spinal Fri 13:53
Great Big Youtube thread
Jayenkai Fri 12:10
Polls : Top 100 British TV Shows
steve_ancell Fri 09:14
Daily Doodles
Jayenkai Fri 06:53
What Have You Done? - March 2015
steve_ancell Thu 04:47
Goodbye, Top Gear?
Dabz Thu 04:41
Renderman - free?!??!!!
Jayenkai Wed 07:35
CG Max-Headroom-style Background
steve_ancell Tue 16:32
More

Latest Items
Blog : Back on the run
rychan Mon 16:33
Blog : New Fence..
steve_ancell Wed 11:28
Snippet : Rotating Sphere
Dabz Sun 19:36
Woot : Three Years Later...
Kuron Fri 07:05
Snippet : IFS Fractal Viewer
Andy_A Mon 14:20
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
News : Newsletter #243
Dabz Thu 03:29
More

Who's Online
Jayenkai
Fri, at 15:52
Hotshot
Fri, at 15:48
spinal
Fri, at 13:53
Steve Elliott
Fri, at 13:12
shroom_monk
Fri, at 12:38
steve_ancell
Fri, at 10:41
blanko1324
Fri, at 08:58
rockford
Fri, at 07:07
9572AD
Fri, at 00:10
rychan
Thu, at 15:20
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.