HandleUtility
- acceleration
- AddControl
- AddDefaultControl
- CalcLineTranslation
- ClosestPointToArc
- ClosestPointToDisc
- ClosestPointToPolyLine
- DistancePointBezier
- DistancePointLine
- DistanceToArc
- DistanceToCircle
- DistanceToDisc
- DistanceToLine
- DistanceToPolyLine
- GetHandleSize
- GUIPointToWorldRay
- niceMouseDeltaZoom
- niceMouseDelta
- PickGameObject
- PickRectObjects
- PointOnLineParameter
- PopCamera
- ProjectPointLine
- PushCamera
- RaySnap
- Repaint
- WorldPointToSizedRect
- WorldToGUIPoint
HandleUtility.CalcLineTranslation 计算线条转换
static function CalcLineTranslation (src : Vector2, dest : Vector2, srcPosition : Vector3, constraintDir : Vector3) : float
Parameters参数
-
srcthe source point of the drag //拖拽的源点
-
destthe destination point of the drag //拖拽的目标点
-
srcPositionthe 3D position the dragged object had at src ray.
在src射线拖拽物体的3D位置 -
constraintDir3D direction of constrained movement
约束移动的3D方向
float - the distance travelled along constraintDir
返回浮点数,沿constraintDir的移动距离
Description描述
Helper function for doing arrows.
做箭头的辅助函数。
最后修改:2011年7月10日 Sunday 12:50