I am trying to get a prismatic constraint to extend to the correct target position to where it stops at the Y value of another part.
I tried accomplishing this by subtracting the y position of the part with the prismatic constraint and the y position of the part at the target y position. However this usually won’t work, as it’ll usually pass the intended y position.
I simply want a prismatic constraint to raise a part attached to it to a certain Y position. I need to find a way to find out what TargetPosition should be set to in order for the prismatic constraint to raise the part to the specified Y position.
Fixed it, I was getting the TargetPosition by subtracting the target floor position - the elevator position when I should’ve just done the floor position the prismatic constraint was on - the target floor position.