Beispiel #1
0
 private void InputControllerOnDragStart(Vector3 dragPosStart)
 {
     if (isDraggingSceneObject == false)
     {
         cameraScrollVelocity = Vector3.zero;
         dragStartCamPos      = Transform.position;
         IsDragging           = true;
         DragCameraMoveVector.Clear();
         SetTargetPosition(Transform.position);
     }
 }
Beispiel #2
0
 private void InputControllerOnDragStop(Vector3 dragStopPos, Vector3 dragFinalMomentum)
 {
     if (isDraggingSceneObject == false)
     {
         cameraScrollVelocity = GetVelocityFromMoveHistory();
         if (cameraScrollVelocity.sqrMagnitude >= autoScrollVelocityMax * autoScrollVelocityMax)
         {
             cameraScrollVelocity = cameraScrollVelocity.normalized * autoScrollVelocityMax;
         }
         timeRealDragStop = Time.realtimeSinceStartup;
         IsDragging       = false;
         DragCameraMoveVector.Clear();
     }
 }
Beispiel #3
0
 private void InputControllerOnPinchStop()
 {
     IsPinching = false;
     DragCameraMoveVector.Clear();
 }