Skip to content

rayferric/soft-bodies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Soft Bodies

๐Ÿ€ Real-time soft body simulation sandbox.

Features

  • Basic joint and spring physics integration.
  • Rectangle-joint collisions.
  • Basic OpenGL 3.3 renderer.
  • Dear ImGui integration.

Gallery

soft-body.mp4

Getting Started

Prerequisites

Build Instructions

cmake -B ./build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build ./build --config Release

The desired binary will be generated in ./build/bin directory.

Controls

LMB over air: spawn joint

LMB over joint: spawn spring

LMB while spawning spring: attach spring or abort

RMB over air: spawn rectangle

RMB while spawning rectangle: apply size or angle

RMB over joint: delete joint

RMB over rectangle: delete rectangle

About

Authors

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

๐Ÿ€ Real-time soft body simulation sandbox.

Resources

License

Stars

Watchers

Forks