HandleUtility.CalcLineTranslation

static function CalcLineTranslation (src : Vector2, dest : Vector2, srcPosition : Vector3, constraintDir : Vector3) : float

Parameters

NameDescription
src The source point of the drag.
dest The destination point of the drag.
srcPosition The 3D position the dragged object had at src ray.
constraintDir 3D direction of constrained movement.

Returns

float - The distance travelled along constraintDir.

Description

Helper function for doing arrows.