11-09-2023, 10:05 AM
(This post was last modified: 11-09-2023, 10:10 AM by josemendez.)
Hi!
Judging from the video, it's clear that the character is ignoring rope physics completely. In particular, it's ignoring the position/velocity of the particle it is attached to.
The rope should be enough to make the character swing, no need for the extra hinge joint. Otherwise you'll get a rope that sags below the character, as it's impossible to make a group of distance constraints (or constraints of any kind, for that matter) converge perfectly.
If you want to keep the hinge joint, you can get the length from any particle to the top of the rope by iterating trough rope elements towards the top and accumulating their length.
kind regards,
Judging from the video, it's clear that the character is ignoring rope physics completely. In particular, it's ignoring the position/velocity of the particle it is attached to.
The rope should be enough to make the character swing, no need for the extra hinge joint. Otherwise you'll get a rope that sags below the character, as it's impossible to make a group of distance constraints (or constraints of any kind, for that matter) converge perfectly.
If you want to keep the hinge joint, you can get the length from any particle to the top of the rope by iterating trough rope elements towards the top and accumulating their length.
kind regards,