XNA Track rotated pixel positions

Posted by jonny adams on Stack Overflow See other posts from Stack Overflow or by jonny adams
Published on 2010-05-03T15:23:32Z Indexed on 2010/05/03 15:28 UTC
Read the original article Hit count: 256

Filed under:
|
|
|
|

Hi,

Im making a game in xna where a tank has to move over a landscape. I need to be able find the bottom of the tank when it is rotated so I can make it move up and down as the player goes over the landscape.

for example if i have a sprite at with its top left corner at 400,300 and i rotate it around its center by 45 degrees around its center, how do i find the new locations of the bottom track.

Thanks

© Stack Overflow or respective owner

Related posts about XNA

Related posts about rotation