Capsule 2D shape resource for physics. Capsule 2D shape resource for physics. A capsule (or sometimes called "pill") is like a line grown in all directions. It has a radius and a height, and is often useful for modeling biped characters. Return the height of the [CapsuleShape2D]. Return the radius of the [CapsuleShape2D]. Set the height of the [CapsuleShape2D]. Set the radius of the [CapsuleShape2D].