Gyroscopes are fun to study and play around with. This gyro is capable of following any given shape as soon as the tip touches its edge. As explained on the TUM Chair of Applied Mechanics channel:
The friction between tip and shape generates a tangential force, creating a moment such that the gyroscopic reaction pushes the tip towards the shape. The resulting normal force produces a moment that guides the tip along the shape’s edge.