Actually it is me who deletes one of the contraints here, but since I am calculating the tension in the contraints it is easy to make them breakable. The tension is positive if a contraint is stretched and negative if it is compressed. Yeah I just need to add proper fluid mechanics, with surface tension and viscosity, if I can get my head around that :-)
cool... I see you have breakable constraints... now all you have to do is change the way collisions are done to soft collisions and you have a fluid engine :)
Actually it is me who deletes one of the contraints here, but since I am calculating the tension in the contraints it is easy to make them breakable. The tension is positive if a contraint is stretched and negative if it is compressed. Yeah I just need to add proper fluid mechanics, with surface tension and viscosity, if I can get my head around that :-)
jeppen82DK 2 years ago
that stuff is all really simple once you understand it though. if you need help ill be glad to share some code
natethegreatBlitzMax 2 years ago
cool... I see you have breakable constraints... now all you have to do is change the way collisions are done to soft collisions and you have a fluid engine :)
natethegreatBlitzMax 2 years ago