diff --git a/src/DistanceOf/LineSegmentToPoint.lua b/src/DistanceOf/LineSegmentToPoint.lua index 4638215..7790e37 100644 --- a/src/DistanceOf/LineSegmentToPoint.lua +++ b/src/DistanceOf/LineSegmentToPoint.lua @@ -1,7 +1,7 @@ -- Reference: http://www.r-5.org/files/books/computers/algo-list/realtime-3d/Christer_Ericson-Real-Time_Collision_Detection-EN.pdf -- Page 129-130: Distance of Point to Segment -local LineSegmentToPointSquared = require(script.ParentLineSegmentToPointSquared) +local LineSegmentToPointSquared = require(script.Parent.LineSegmentToPointSquared) local function LineSegmentToPoint(segmentPointA, segmentPointB, pointC) local distanceSquared = LineSegmentToPointSquared(segmentPointA, segmentPointB, pointC)