-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11af819
commit 98c261c
Showing
5 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Bounce | ||
|
||
A first approach to simulating cloth. It models cloth as a bunch of nodes connected by springs and atracted by gravity to the floor. | ||
|
||
## Features: | ||
* Runge Kutta 4 solver | ||
* Raylib to display the 2D results. | ||
* Runs in real time. (At least for 40x40 = 1600 nodes). | ||
|
||
## To improve: | ||
* Spring's rest length is zero. This makes the cloth want to collapse on itself. | ||
* The code is really ugly. A new more clear way of handeling interactions is needed. | ||
* Add a way to interact with the cloth while the program is running. | ||
* Try to make it 3D | ||
|
||
## Output: | ||
 | ||
Output of the cloth simulation. The cloth is only supported by the top corners. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters