Latest Uploads
Vagina

Jayenkai

You Were Defeated

rychan

IFS Viewer 3

Andy_A

Still Truckin'

rychan

Curlicue Fractals

Andy_A

heroextant ... -small.png

HoboBen

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 662|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
PS4 Games
Jayenkai Wed 12:39
What Have You Done? - July 2016
Jayenkai Wed 03:02
Jay Buys an iPhone
Jayenkai Wed 02:40
Star Trek - Discovery
Jayenkai Tue 00:51
Is Monkey2 3D?
therevillsgames Mon 13:53
What Can You Post?
Jayenkai Mon 09:34
Sonic Mania
Jayenkai Sun 13:51
Robot Wars
Jayenkai Sun 11:57
Monkey Fullscreen
Jayenkai Sun 06:24
Porting
spinal Sun 04:15
More

Latest Items
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
Snippet : Texture - Stone 2
Pakz Mon 09:50
Snippet : Texture - Stone 1
Pakz Mon 09:46
Snippet : Texture - Cloudy Patterns
Pakz Mon 08:57
Showcase : Mining Map AI Demo
steve_ancell Wed 08:00
Showcase : Deflektivity
Jayenkai Mon 11:54
Showcase : Grey Lined Backgrounds
HoboBen Mon 04:17
Showcase : CAVE
Jayenkai Sun 07:20
Showcase : I Shall Be Queen!
rychan Fri 06:41
Snippet : Thousands of 3D Cubes
Pakz Fri 02:49
Showcase : Go!
rychan Thu 23:13
Showcase : Map Generator variation
Pakz Sat 00:08
More

Who's Online
Krakatomato
Wed, at 14:53
GfK
Wed, at 14:52
Pakz
Wed, at 13:34
spinal
Wed, at 13:17
Andy_A
Wed, at 13:07
shroom_monk
Wed, at 12:54
rockford
Wed, at 12:42
Jayenkai
Wed, at 12:39
9572AD
Wed, at 12:19
steve_ancell
Wed, at 10:44
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.