Example #1
0
        private void UpdatePositionSubsequent()
        {
            if (world_press_target != null)
            {
                if (is_dragging)
                {
                    world_press_target.Drag(this);
                }
                else
                {
                    if (current_press_position.IsOutsideDistance(touch_point.GetWorldPoint(), world_press_system.GetDragThreshold()))
                    {
                        world_press_target.Grab(this);

                        drag_point  = CreateRelativePointFromWorldPoint(GetCurrentPressPosition());
                        is_dragging = true;
                    }
                }
            }
        }
Example #2
0
 public Vector2 GetDragPoint()
 {
     return(drag_point.GetWorldPoint().GetPlanar());
 }