Find grid points along the edge of a circle?
Posting this in Evo & Fusion.
I need an equation to move the rotational point around as if it were someplace else. :huh: It takes a while to explain to all those I have asked so far..
http://i61.tinypic.com/v5bs5j.jpg
Imagine you have a map overlay of the current dungeon, with a top-down view of your character seen through it. If you've played Duke Nukem 3D, it would look like that. I would like to give the player the option to freely move the map around, without moving the player, but with the player still visible behind it, (like peripheral vision while checking the map).
Because the player is stationary, and visible, the map's rotation point should always be where the player is. The issue however is that when I try to rotate the room, it will always rotate around its pivot point rather than around the player. So if the room is moved 2 units along both X and Z, it's pivot point will also be moved there. When it rotates, the player will appear to slide around in a circle, through walls and the rest of the map, making plotting a path very difficult.
I need an equation to draw a circle around the player, with a diameter length equal to the distance between the map's pivot and the player, then move the map around that circle's edge; (I will spin it with OPE no problems there).
I have located an equation called "Midpoint Circle Algorithm",
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
but to me right now it looks like potatoes :/.