A hit is the application of some force, so to be hit by someone in a dream or to be hitting someone suggests an aggression or emotion that we find difficult to deal with.

To be hitting an object suggests frustration and finding an interpretation for the object may be of assistance.