I’ve had this problem a couple times before and I’ve been able to just figure out numbers that work, but now I would like to know the actual formula so I don’t have to mess around with it so much next time. The kind of thing I’m looking for is how to find a point on a circle depending on a certain rotation value. A good example of this is for finding the spawn point for a bullet on a ship that rotates (e.g. asteroids). If the ship is in the default position (facing up), the bullet just spawns at x = ship.x+ship.width/2, y = 0; The problem I’m having is in finding the correct x and y once the ship is rotated. My problem isn’t exactly like that since the object can only rotate along the left hand side of an imaginary circle, but its similar enough.
If you need more information, just let me know. Thanks for any help.


I’m not really sure what to try right now… I’ll keep pondering!