Hello everyone, so I have a scripting problem here. I am trying to move a part in the same direction (the arrow shown above in the diagram) for any given rotation of the referenced part, or which I call here as part2. How would I know if I need to use a negative value or a positive value to always have the part move along the same line no matter what the rotation of part2 is? Basically, how would I know which value would allow the part to always move in the same direction as the arrow.
Sometimes if you use the positive value it goes the other way, and the same with the negative value given different rotations of part2, which I don’t want happening. I want the part to always go in the direction of the arrow no matter which rotation part2 is.
It doesn’t seem to work. I have two parts with opposite angles, one part with 151 degrees and the other 29 degrees. For the 29 degrees part the relative part goes up which is what I wanted, but for the 151 degrees part the relative part goes down for some reason and goes the opposite way.
Thank you for your help so far. I appreciate it a lot.