How to stop the dragging of object when it hit on collider.

I have been trying to stop the drag of object when hit on collider. What would be the exact solution to fix this.Both the objects which i drag and on which i collider have the box collider.But the collision doesn’t happen. can anyone help me with this?

To stop the drag you can:

  • Set “Use Gravity” to false in the RigidBody
  • Set “Is Kinematic” to true in the RigidBody
  • Create a Physics Material with high friction

About the colision:

  • Make sure “IsTrigger” is unchecked on both colliders
  • Change Colision Detection in the RigidBody

Good Luck buddy