示例#1
0
 private void OnGizmoHandleDragUpdate(Gizmo gizmo, int handleId)
 {
     if (handleId == HandleId && DragChannel == GizmoDragChannel.Rotation)
     {
         _transform.Rotate2D(RelativeDragRotation);
     }
 }
 private void OnGizmoHandleDragUpdate(Gizmo gizmo, int handleId)
 {
     if (handleId == HandleId || handleId == _cap2D.HandleId)
     {
         _transform.Rotate2D(gizmo.RelativeDragRotation);
     }
 }
 public void SetMappedAxis(Vector2 axis)
 {
     if (!IsMapped)
     {
         return;
     }
     _transform.Rotate2D(QuaternionEx.FromToRotation2D(Axis, axis));
 }