It's hard to figure the size of those parts from the picture, but the needles could be from the thrust bearings that go between the bull pinions and the differential. Does it make the banging noise all the time or only when moving? Does the banging have a distinct rhythm or does it bang wildly? Rhythmic banging usually equals chipped or broken gear teeth, while random or constant banging usually means a bad bearing.