# Kinetic energy and Gravitational Potential Energy

Hi Guys,

When we are finding the wasted energy when something is dropped a tower, we do this: mgH-0.5mv^2
My question is, does the velocity of the kinetic energy have to be vertical component, or can it be the impact velocity when it hits the ground?

Thanks