Tag Info

Hot answers tagged


First of all: most computer trigonometric functions takes radians as input. Even if the code worked, I am 99% sure it will not rotate by 90 degrees. So if it is that case, try changing it to pi/2. Secondly, if you would rotate by not-multiply of 90 degrees - the code would still produce axis-aligned rectangle (bounding box), NOT rotated rectangle as you ...


I fixed the issue by changing the global coordinate system to the box2d one. Now the local 0,0 coordinates of my entities correspond to their center coordinates and they represent meters instead of pixels. EDIT (some clarifications): I now translate them in the render system (because this is really the only place where I need pixel coordinates): // get ...

Only top voted, non community-wiki answers of a minimum length are eligible