Hi,
I have to check if my point is contained in my spite. So i wrote a something like that:
if(my_sprite->getBoundingBox().containsPoint(point))
my_sprite has a shape of rectangle and is rotating in another function.
But the problem is that getBounding box doesnt return what i want. I will describe my issue:
This red rectangle is my_sprite and green ‘frame’ is what getBoundingBox returns.
As you see getboundingbox dosnt retrun what I expected.
What is the fastest way to resolve it? Because it doesnt cover proper area.