GameDev math recipes: Rotating one point around another point
It is quite common to want to rotate one point relative to another the location of another point. This math recipe looks at exactly this process. Just the math angle = (angle ) * (Math.PI/180); // Convert to radians var rotatedX = Math.cos(angle) * (point.x – center.x) – Math.sin(angle) * (point.y-center.y) + center.x; var […]
GameDev math recipes: Rotating one point around another point Read More
