Latest Uploads
Merry Xmas

Jayenkai

RCT Classic on iOS

Jayenkai

Oops

Jayenkai

Recommend_Win10

Jayenkai

Title Anim ... d Biomorph

Andy_A

Investigating

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 486|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Kuron's Neighbours
steve_ancell Thu 17:23
Jess Thom on RHLSTP (rhlstp)
steve_ancell Thu 17:17
Gotta Get A Guitar
rockford Thu 13:57
Happy Birthday Rockford
rockford Thu 13:53
Paint vs Driveway
Kuron Thu 11:34
Emails, Usernames and Passwords
rockford Thu 09:56
Twittercrap
steve_ancell Thu 06:52
AGameAWeek : 2017 - Part One
Jayenkai Thu 03:32
Praising Palm
rskgames Thu 03:19
Spinal's SNESGear
rockford Wed 10:58
More

Latest Items
Article : Maths 101 - Episode 1: Basic Trigonometry
shroom_monk Sun 14:07
Article : Maths 101 - Episode 5: Line Intersection
shroom_monk Sun 14:02
Dev-Diary : Normals and Dot products
Pakz Sat 20:37
Pets : Molly On The Couch
Jayenkai Thu 04:32
Showcase : Between Space
Pakz Sun 12:55
Snippet : Additive Particle Flames
Pakz Fri 18:12
Snippet : Maze 2d - Recursive Backtracker
Pakz Sun 07:34
Snippet : Bush fire maps
Pakz Wed 09:43
Woot : My Music
Jayenkai Sat 14:20
Snippet : Grass like image generator
Pakz Thu 00:09
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
More

Who's Online
rskgames
Fri, at 06:59
Jayenkai
Fri, at 06:16
spinal
Fri, at 05:00
rockford
Fri, at 04:42
Krakatomato
Fri, at 03:48
steve_ancell
Fri, at 03:15
HoboBen
Fri, at 02:38
Kuron
Fri, at 01:10
therevillsgames
Thu, at 18:06
shroom_monk
Thu, at 17:01
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.