Latest Uploads
dungeon ma ... litz basic

realtime

Crystal Ca ... een So Far

rychan

Crystal Ca ... Screen V1

rychan

Day 5 Graphic

rychan

Mutanty Mo ... Workfiles.

steve_ancell

mono images

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, 22:48
Jayenkai


ooooh, bouncy!

Homepage : http://AGameAWeek.com
Latest Posts
RollerCoaster Tycoon 4
rychan Wed 04:44
Password Security Safety
dna Tue 20:48
GameJolt Revenue
Jayenkai Tue 13:04
AGameAWeek Progress Report
Jayenkai Mon 14:41
Evil Mongoose
Mog Mon 12:27
Arachnophobics Beware
steve_ancell Mon 03:36
confirmation form?
steve_ancell Mon 02:08
Driver survives flying car ride.
steve_ancell Sun 15:17
Weather Symbols
dna Sun 15:00
WebDev Made Easy
dna Sun 13:59
More

Latest Items
Showcase : dungeon maker algorithm
Jayenkai Wed 01:42
Dev-Diary : More Screens
Kuron Sat 09:01
News : Newsletter #221
Dabz Fri 10:07
Dev-Diary : Crystal Catch Development
rychan Thu 14:38
Link : Sfxr
rychan Thu 04:16
Showcase : SpringySquirrel
Jayenkai Tue 22:58
Dev-Diary : More Planning and Framework Learning
rychan Tue 17:23
Dev-Diary : Another Song
Kuron Tue 09:10
Link : Free 3D characters!
Jayenkai Mon 05:48
Family : Life...
Dabz Mon 04:57
Dev-Diary : New Song
Kuron Sun 17:32
Blog : Got Distracted from code today
rychan Sat 16:52
Dev-Diary : Monkey Day 5
rychan Sat 06:53
Dev-Diary : Monkey Day 4
rychan Fri 13:31
Showcase : Mutant Monty
steve_ancell Fri 08:14
More

Who's Online
Jayenkai
Wed, at 06:04
steve_ancell
Wed, at 04:58
rychan
Wed, at 04:56
shroom_monk
Wed, at 04:13
therevillsgames
Wed, at 02:19
Hotshot
Wed, at 02:12
realtime
Wed, at 01:23
rockford
Wed, at 00:20
spinal
Tue, at 23:02
dna
Tue, at 20:48
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.