java - Checking collision between Rectangle and Shape -
in game player uses rectangle bounding box, can because need rotate player image , not acctual rectangle eletric beam 1 of bosses have need use shape because need rotate acctual bounding box , not image. problem because have 1 rectangle , 1 shape can't use rectangle.intersect(shape) nor rectangle.intersect((rectangle)shape) how able check collision between rectangle , shape? or there way can rotate rectangle on instead of shape (i use createtransformedshape instance of affinetransform rotate shape )?