Skip to main content
Removed obvious / boilerplate text. Clarified the important bit.
Source Link
Anko
  • 13.4k
  • 10
  • 55
  • 82

How todo I rotate a bounding box together with a sprite?

This has been probably asked a lot, but still I couldn't find an answer that helped me.

I know it's a little general, please forgive me for this.

I have a game object with a sprite that can rotate. It's a rectangle. I need it'sits bounding box to rotate with it. Can you show or link me to an example of how thisHow do I make sure that they can generally be doneboth rotate, but they're always both at the same angle? Thanks

How to rotate a bounding box?

This has been probably asked a lot, but still I couldn't find an answer that helped me.

I know it's a little general, please forgive me for this.

I have a sprite that can rotate. It's a rectangle. I need it's bounding box to rotate with it. Can you show or link me to an example of how this can generally be done? Thanks

How do I rotate a bounding box together with a sprite?

I have a game object with a sprite that can rotate. It's a rectangle. I need its bounding box to rotate with it. How do I make sure that they can both rotate, but they're always both at the same angle?

Tweeted twitter.com/#!/StackGameDev/status/420685350886207488
Source Link
user3150201
  • 935
  • 6
  • 14
  • 22

How to rotate a bounding box?

This has been probably asked a lot, but still I couldn't find an answer that helped me.

I know it's a little general, please forgive me for this.

I have a sprite that can rotate. It's a rectangle. I need it's bounding box to rotate with it. Can you show or link me to an example of how this can generally be done? Thanks