Latest Uploads
Dungeon Ga ... n Progress

rychan

image-17-0 ... -18-36.jpg

Jayenkai

image-07-0 ... -20-20.jpg

Jayenkai

Kuron Cap Get!

rychan

Merry Christmas

Jayenkai

Invasion V ... tup screen

rychan

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
Jay Buys an LG Telly
Jayenkai Thu 06:13
InDev : SpikeDislike3
Jayenkai Thu 03:12
Car MOTs
Jayenkai Thu 02:04
Jayenkai's Daily Blog! Attempt #3923
Jayenkai Thu 01:23
Spinal's SNES Controller
spinal Thu 00:55
Great Big Youtube thread
Jayenkai Wed 16:56
Musical Tastes
GfK Wed 03:45
The 4G Mobile Data Issue
Jayenkai Wed 03:33
Monitor ''Hz''
Jayenkai Wed 02:10
Artistic Payments
rychan Tue 15:27
More

Latest Items
Dev-Diary : Helichopper stuffs
Jayenkai Thu 06:35
Blog : tuum
steve_ancell Thu 00:25
Blog : Back on the run
rychan Tue 13:23
Showcase : Crime (reloaded)
rockford Wed 07:30
Showcase : Blockman Forever
Steve Elliott Sun 12:42
Snippet : Lotto Number
Jayenkai Thu 15:14
Showcase : Invisible Munky 2
Jayenkai Thu 04:52
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 : Millenipede
Steve Elliott Mon 17:44
Snippet : Simple stack-based interpreter
tbohon Wed 12:08
:
Wed 17:00
:
Wed 17:00
More

Who's Online
Jayenkai
Thu, at 06:40
Hotshot
Thu, at 06:34
9572AD
Thu, at 06:17
GfK
Thu, at 06:17
rockford
Thu, at 06:10
Afr0
Thu, at 05:56
Krakatomato
Thu, at 04:19
therevillsgames
Thu, at 02:59
ferdi
Thu, at 02:56
shroom_monk
Thu, at 01:57
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.