How can i detect when a rope gets untangled

I made a rope tangling system where i have 2 attachments: StartAttachment (Attachment0) and EndAttachment (Attachment1) then i cast a ray every frame from attachment0 to attachment1, and when the ray hits something it creates an attachment at the intersection and splits the rope into two.
Now my problem is that i can’t detect when the rope get untangled (The rope gets away from the wall)
I tried using dot product but no luck.

If you have a solution then please help. Thank you.

Can you specify more? Maybe show an image


Have you tried after getting the rope tangled, start shooting a raycast from the hand to the gun while the rope is already tangled, and make sure that the ray instance is the gun?

That worked.
Thanks for the help, i should have thought of this earlier

1 Like

No problem, I am glad i could help someone since it’a my first time on the devforum

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.