08-21-2024, 01:20 PM
In V1 LineSelectorData has a LastClosestPositionOnLine property that returns the position (Vector3) closest to the mouse position
In V2 this property has been removed, and a new GetClosestPositionOnLine method has been added. However the method requires rayOrigin and rayDirection parameters which I don't know how to set in this case.
Would it not make sense to have a version that uses the pointer position (Vector2) that was passed to the LineSelectorData.GetClosestDistance to determine the closest line?
In V2 this property has been removed, and a new GetClosestPositionOnLine method has been added. However the method requires rayOrigin and rayDirection parameters which I don't know how to set in this case.
Would it not make sense to have a version that uses the pointer position (Vector2) that was passed to the LineSelectorData.GetClosestDistance to determine the closest line?