In mario game for example, when you jump and hit the box the coin will bounce and jump a little bit above the box so the player knows there was a coin in the box/block. How do I make like these?
This is something you will have to animate or play around with velocity/angular to get the desired effect.