You see, the rays from the sun are attracted to conductors like metal which is what that pole you were leaning on is made of.
So sense the pole absorbed the light and it's hot that means that in this situation you would be the colder object which is why you had the reaction of ouch! This type of energy is nuclear but can be referred as gamma ray
Hold up so the sun is attracted to metal and i am the cooler object so that's why it hurts when i touch the pole it hurts and this type of energy is gamma ray
Thanks I will be sure to be more careful next time