a simile from the book rebound

"My heart felt like it had been slammed against the backboard, bounced off the rim, and landed with a thud on the court."

what does he mean by that

In this simile from the book "Rebound," the author is comparing the feeling of their heartache or disappointment to the physical impact of a basketball being forcefully thrown against the backboard, bouncing off the rim, and then falling heavily to the ground. This vivid description conveys the intensity and sharpness of the emotional pain the character is experiencing.