Here's a problem. I have box2d world and i need to display it in different angles and positions.
It's all clear with positions: i just substract x y coordinates of point of view from bodies coordinates. But how do i rotate the whole world on angle?
I don't remember maths very well, i know there must be some multiplication vector*matrix
so i've learned so far there's b2Mat22 class and
method
Let say i have a point (x,y) and i want to rotate it on alpha.
Give me code please how to do it?
It's all clear with positions: i just substract x y coordinates of point of view from bodies coordinates. But how do i rotate the whole world on angle?
I don't remember maths very well, i know there must be some multiplication vector*matrix
so i've learned so far there's b2Mat22 class and
Code:
void Set (float32 angle) //Initialize this matrix using an angle.
method
Let say i have a point (x,y) and i want to rotate it on alpha.
Give me code please how to do it?