Optimize drag and object snap forces in 2D and 3D

I. Problem Resolution:

This resolves the issue of flickering when dragging objects to walls and improves the interaction experience.

II. Steps for operation:

  1. In the 2D interface, when you drag a model and move the mouse to the other side of the wall, the model will flip and snap to the opposite side of the wall.
  2. In the 3D interface, when you drag a model and move the mouse to the other side of the wall, the model can pass through the wall.
  3. During the movement process, if you drag the model and move the mouse toward the wall, the object cannot pass through the wall. Hold Ctrl to stop snapping, allowing the object to move through the wall.