This is not working and i need a hug

Im looping for each element of an array of physical constraints, getting the constraint components and checking my struct array for the matching components

if found i then try to add the constraint to the array in the struct, i tried printing out each pin and they are correct, but add and add unique just wont work

i cant get where i did wrong.

Foreach gives you a copy of the array element, you are modifying the copy, not the element inside the array.

Instead, use BodyParts → Get (by ref) using ArrayIndex from the Foreach, and modify that element.

1 Like

lovely stuff, i feel dumb for bothering you

:hugs:

Do NOT feel dumb. Ever. This stuff is not easy.

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