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 )?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -