Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1368188 Posts in 64209 Topics- by 56149 Members - Latest Member: dev.kandarp.pandya

October 22, 2019, 07:43:11 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)2D Soft Body with Verlet
Pages: [1]
Print
Author Topic: 2D Soft Body with Verlet  (Read 374 times)
SirTrashyton
Level 0
*


View Profile
« on: March 26, 2019, 10:02:24 PM »

Hello,

I created a simple soft body deformation system in my 2D sidescroller in order to have animated plants and expected animations in reaction to forces. I use a PointMass system upated with Verlet integration and a simple constraint system. The code did not take long to implement and the results mostly speak for it self. I would highly recommend verlet as it is powerful for 2D physics and allows for rope mechanics and even box-box physics with orientation almost out of the box. I'll link the article I used below.

https://gyazo.com/4fb10acdca61f9e0f2f6dd6ab742a6a0
https://gyazo.com/4fb10acdca61f9e0f2f6dd6ab742a6a0
https://gyazo.com/b69716cab61a41377123067dc82d382a

To learn how to implement Verlet:




- Jake from Black Ear Studios
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic