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.