HandleUtility.CalcLineTranslation 计算线条转换
static function CalcLineTranslation (src : Vector2, dest : Vector2, srcPosition : Vector3, constraintDir : Vector3) : float
Parameters参数
-
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.
在src射线拖拽物体的3D位置
-
constraintDir
3D direction of constrained movement
约束移动的3D方向
Returns
float - the distance travelled along constraintDir
返回浮点数,沿constraintDir的移动距离
Description描述
Helper function for doing arrows.
做箭头的辅助函数。
Page last updated: 2011-7-10