Godot
Basics

A rigidbody is a physical object that falls, bounces etc.

A staticbody is a physical object that does not move.

Both of the above need to have the following child nodes:

  • Sprite or AnimatedSprite (so you can see the object)
  • Collision (to define the physical shape)
Create a physical object
Use a button to apply an impulse
Add and play animations
Make a draggable object

Create an Area2D with the following child nodes:

  • Sprite or AnimatedSprite (so you can see the object)
  • Collision (to define the physical shape)

Attach the draggable.gd script (file below) to the Area2D

draggable.gd