Skip to content

SebZanardo/softbody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

softbody

Softbody physics written in C making use of a simple arena allocator

The simulation makes use of technique called Shape Matching
This makes the simulation more stable than traditional softbody techniques, but less physically accurate
Massive credit to this fantastic video: https://www.youtube.com/watch?v=3OmkehAJoyo&t=655s

cover

Will definitely be using this code for upcoming game jams

FUTURE TASKS:

  • Coloured wall particle effects like SUPERMEAT BOY (using a ring buffer)
  • Collisions between softbodies
    • Takes into account relative mass
    • Spatial partitioning scheme to optimise collisions (simple grid is good enough)
    • (DONE) Double buffer for point positions and velocity
  • Static shape map obstacles that integrate into spatial partitioning scheme

About

Stable softbody simulation written in C

Topics

Resources

Stars

Watchers

Forks