Can somebody please show/tell me how to plot a number of points around a circle.
I know roughly it would be something like
local \_numofpoints = 5;
local xScreenPos = 200
local xScreenPos = 200
local \_distance = 50
local \_rotation = 2 \* math.pi / \_numofpoints
for i = 0, \_numofpoints, -1 do
local circle = display.newCircle(0, 0, 10)
circle.x = xScreenPos + (i\*math.cos(\_distance) \* \_rotation)
circle.y = yScreenPos + (i\*math.sin(\_distance) \* \_rotation)
end
I know this a very simple request, but it’s been many years since I took high school maths.
Many Thanks
[import]uid: 88980 topic_id: 31227 reply_id: 331227[/import]