Latest Uploads
Title Anim ... d Biomorph

Andy_A

Investigating

Jayenkai

Fancy Robot

Jayenkai

Top Secret

Jayenkai

Bargain

Jayenkai

Time for a ... op perhaps

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
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 103|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
M+M decisions
rockford Sun 05:21
Advent Calendars - 2016
rockford Sun 05:20
Decorations
rockford Sun 00:39
Android Consoles aren't surviving
9572AD Sat 21:37
Gatlinburg Fire
Stealth Sat 19:48
AGameAWeek : 2017 - Part One
Jayenkai Sat 16:37
Pop Quiz, HotShot
Jayenkai Fri 13:22
I Don't Need These...
rockford Fri 08:43
Colouring for Adults
Jayenkai Fri 02:41
RIP - Andrew Sachs
Jayenkai Fri 01:48
More

Latest Items
Woot : My Music
Jayenkai Sat 14:20
Snippet : Grass like image generator
Pakz Thu 00:09
Pets : Molly On The Couch
Jayenkai Wed 05:32
Snippet : Grid Menu
Pakz Mon 12:15
Showcase : Gamma Collexion
Jayenkai Sun 12:56
Showcase : SSASE
spinal Sun 07:51
Snippet : Water in 2d map
Stealth Sat 20:19
News : Newsletter #292
rockford Fri 12:16
Showcase : Mining Map AI Demo
Stealth Wed 08:02
Blog : Spilling my Noodles
Jayenkai Tue 21:58
Dev-Diary : Current Direction
Pakz Tue 13:46
Showcase : Biomorph Fractals
Andy_A Tue 13:15
News : Newsletter #291
steve_ancell Fri 08:56
Snippet : Futuristic Weapon Images
Pakz Fri 04:01
Snippet : Face Formula
Andy_A Thu 14:56
More

Who's Online
GfK
Sun, at 07:05
Jayenkai
Sun, at 06:40
Pakz
Sun, at 06:14
rockford
Sun, at 05:21
spinal
Sun, at 05:13
HoboBen
Sun, at 01:04
Kuron
Sat, at 21:54
9572AD
Sat, at 21:37
steve_ancell
Sat, at 20:06
Stealth
Sat, at 19:49
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.