Latest Uploads
Smaller Scar?

zzoom

Big Scar

Jayenkai

Swirly Thing

Jayenkai

Best Title

rychan

Spaceplosi ... nator 2086

rychan

Damn Bounces

AndyH

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 663|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
New Amstrad CPC game.
steve_ancell Tue 14:56
The New Fiver
rockford Tue 08:26
Frustrating Issues in Games
rockford Tue 08:24
WW - #248 - The Duck Challenge
Jayenkai Tue 00:51
Jay Gets XBoned...
rockford Mon 13:29
Kuron vs His Parents?
GfK Mon 01:51
Ai Making music (Golden age of music)
Jayenkai Sun 23:30
RIP : Zzoom's Mother-in-Law
Kuron Sun 22:19
Weekend Plans?
Jayenkai Sat 14:26
AL MICKSES A MACKEY TRACKEY
Jayenkai Sat 00:27
More

Latest Items
Dev-Diary : 1st Ever Wed Workshop Progress
zzoom Mon 14:00
Dev-Diary : Intellivision Controller Adapter
spinal Sun 11:33
Snippet : Contour Map from Data
HoboBen Fri 18:14
Snippet : FPS Control (WASD+Mouse)
Pakz Wed 22:30
Article : Concurrency in C#
Afr0 Sun 12:28
Snippet : Mandelbrot in BMax
Jayenkai Sun 03:37
News : Newsletter #281
HoboBen Fri 04:18
News : Newsletter #280
Jayenkai Sat 05:10
Blog : Monkey-X Box2D: Learning from my perspective... Hopefully!
steve_ancell Sun 14:49
Snippet : JNKrunch v1.0
spinal Sun 12:02
Snippet : Dungeon/Cave Generator - Simple
Pakz Wed 15:05
Snippet : Platform Sprite Generator
Jayenkai Tue 15:22
Snippet : Code Creates Crates
HoboBen Tue 07:02
Snippet : Texture - Leafy camouflage
HoboBen Tue 07:00
Snippet : Texture - Stone 3
Pakz Mon 09:55
More

Who's Online
steve_ancell
Tue, at 15:08
9572AD
Tue, at 14:57
shroom_monk
Tue, at 14:42
GfK
Tue, at 12:54
rockford
Tue, at 12:36
Jayenkai
Tue, at 12:24
HoboBen
Tue, at 11:31
zzoom
Tue, at 09:57
Pakz
Tue, at 09:46
Andy_A
Tue, at 07:53
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.