Currently, I’m working on a building system, and I have an issue where I’m raycasting in order to detect which section of the build grid I hit. However, in order to not lag too much when using Instance.new, I created only a few parts. However, I need to get the distance between the hit part, and the ray’s origin. This is an issue because:
A. Using the magnitude of the part will return the distance to the center
B. I need to calculate the endpoint of the ray as to where it was hit, but I’m unsure of how to do this
C. I simply need to know someway to get what point in the ray was there a part