Orbit Object Around Center Point
<p>I am attempting to orbit an object around a center point, much like the sun and our planets. However I am having no luck at all. Any help would be really great. Thanks. I'm writing in luna and I dont think there is a category for that here, but this probably is just general code. But if its in the wrong place, my apologies.</p>

<pre><code>local function animate(event)

    local rads = degrees * (Math.PI / 180);
    ballOne.x = 20 * Math.cos(rad);
    ballOne.y = 20 * Math.sin(rad);
    degrees = degrees + 1

end

Runtime:addEventListener("enterFrame", animate)
</code></pre>
