I have a body that is composed of a number of shapes. At the moment it's all set up to work for when the main body is not rotated...
But, I'm pretty sure I'll want to change that at some point.
I'm fully capable of calculating where all the "child" shapes should move to, but it occurred to me that I should probably be able to do this with the mathematical functions available - I think this would be more efficient in every way - except that I couldn't work out how to do it.
So if someone could point me in the right direction about how to rotate b2Vec2[1] around b2Vec2[2] by theta - I'd be really grateful.
But, I'm pretty sure I'll want to change that at some point.
I'm fully capable of calculating where all the "child" shapes should move to, but it occurred to me that I should probably be able to do this with the mathematical functions available - I think this would be more efficient in every way - except that I couldn't work out how to do it.
So if someone could point me in the right direction about how to rotate b2Vec2[1] around b2Vec2[2] by theta - I'd be really grateful.