can some one please explain to me how this:
test2={}
for i = 1, 30 do
test2[i] = display.newRect(0,0,15,15)
test2[i]:setFillColor(0,0,255)
group:insert(test2[i])
test2[i]:setReferencePoint(display.CenterReferencePoint)
test2[i].x, test2[i].y = _W/2 + 100 * math.sin(i * 12), _H/2 + 100 * math.cos(i * 12)
end
test2[1]:setFillColor(245,12,134)
is generating 30 points around a circle yet not evenly spaced?
they clump 3 together then move to the next 3 around the circle and then the next
I figured out the radius to the circle is 100 thus making the circumference 628.32 which isn’t required for figuring out the cosines and sins of each x and y point but just letting everyone know the scenario [import]uid: 87730 topic_id: 36222 reply_id: 336222[/import]