DragRigidbody2D - Rigidbody2D dragging script for Physics2D

Hey there everybody!

I’ve been working on a game recently and have been scouring the internet for a good rigidbody2D drag script to no avail. So I decided to write up my own and share it.

DragRigidbody2D can get you started dragging things around in less than 60 seconds.

Options include:

  • Multiple drag layers
  • Drag damping
  • Rotation freezing
  • Snapping to center
  • Drag relative to another rigid body
  • Multi touch on mobile!

Here’s a link to it on the asset store: Unity Asset Store - The Best Assets for Game Making

Thanks for taking the time to check it out. Let me know if you have any questions or feature ideas and I’ll be sure to implement them!

Added a video