SketchpunkLabs | WebGL2 : 131 : Soft Body Physics @SketchpunkLabs | Uploaded September 2019 | Updated October 2024, 6 days ago.
Today we continue from the last lesson, where we did all our springs computation on the gpu. Springs are used to help simulate soft body physics and one component need to help is a bit of collision. So we're going to deal with a bit of collision detection in our computer shader and when the collision is released our mesh will spring back to its resting position. We'll explore floor collision, sphere to sphere and end with using ray intersection to add a big of push to our test vegeta mesh.
======================================================
Links of Interest
codepen.io/sketchpunk/pen/xvyzQj
======================================================
GitHub :: github.com/sketchpunk/FunWithWebGL2
Patreon :: patreon.com/sketchpunk
Twitter :: twitter.com/SketchpunkLabs
Tumblr :: sketchpunklabs.tumblr.com
Trello :: trello.com/b/zcTUPpFy/fun-with-webgl-20
Today we continue from the last lesson, where we did all our springs computation on the gpu. Springs are used to help simulate soft body physics and one component need to help is a bit of collision. So we're going to deal with a bit of collision detection in our computer shader and when the collision is released our mesh will spring back to its resting position. We'll explore floor collision, sphere to sphere and end with using ray intersection to add a big of push to our test vegeta mesh.
======================================================
Links of Interest
codepen.io/sketchpunk/pen/xvyzQj
======================================================
GitHub :: github.com/sketchpunk/FunWithWebGL2
Patreon :: patreon.com/sketchpunk
Twitter :: twitter.com/SketchpunkLabs
Tumblr :: sketchpunklabs.tumblr.com
Trello :: trello.com/b/zcTUPpFy/fun-with-webgl-20