# Circular Movement Problem

**URL:** <https://forum.kirupa.com/t/circular-movement-problem/196757>\
**Category:** flash\
**Created:** [August 10, 2006, 6:57pm UTC](https://forum.kirupa.com/t/circular-movement-problem/196757 "2006-08-10T18:57:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Stranger](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@The\_Stranger](https://forum.kirupa.com/u/The_Stranger)\
**Post date:** [August 10, 2006, 6:57pm UTC](https://forum.kirupa.com/t/circular-movement-problem/196757/1 "2006-08-10T18:57:12Z")

</div>

Hi guys! I’m having some problems understanding the logic behind this code:

```auto

var angle = 0;
var radius = 100;
onEnterFrame = function() {
 mc._x = Math.cos(angle) * radius;
 mc._y = Math.sin(angle) * radius;
 angle += .1;
}

```

As you can see this code makes “mc clip” to rotate with a radius of 100. I understand how sine waves works, but i can’t figured out how mixing Math.cos() and Math.sin() makes a circular movement (whats the foundation behind that?)

Time ago I found a tutorial about this subject here in Kirupa, unfortunately I’ve lost the URL.

Please, any explanation will be very useful. Thank you.
