half extents

blue line is hypotenuse

From there you can simply linearly add Pi/4 to the angle (45 degrees), then use:

newx = cos(newAngle)*dist;
newy = sin(newAngle)*dist;

 

http://gamedev.stackexchange.com/questions/14733/aabb-of-rotated-sprite

posted on 2016-12-22 16:38  jiahuafu  阅读(257)  评论(0编辑  收藏  举报

导航