Hello,
So i've been using this library for a while, it's really good. I'm porting my project to this new version, but I'm struggling to make it so the ropes and stuff dont spazz out when the game starts. I used to run the simulation 30 times on the first game frame with high friction, but it doesnt seem to work now.
Any ideas?
Edit: It also seems that increasing the number of points increases the length of the rope. Like, with points set to length/16 I get a much shorter rope than with length/8.
Viewing post in Verlet integration for GMS2.3+ comments
Hi!
You can run the simulation multiple times by calling system.Simulate(delta); and manually override / temporarily store the friction variable system.frict before that.
The reason the rope with more points appears longer is because every point is affected by gravity, which is dragging the rope down and streching it. You can increase the "stiffness" in the rope's constructor to counteract that. :)