# Matrixtransform. rotateAroundExternalPoint

**URL:** <https://forum.kirupa.com/t/matrixtransform-rotatearoundexternalpoint/314999>\
**Category:** Uncategorized\
**Created:** [October 14, 2010, 3:14pm UTC](https://forum.kirupa.com/t/matrixtransform-rotatearoundexternalpoint/314999 "2010-10-14T15:14:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![civictjai](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@civictjai](https://forum.kirupa.com/u/civictjai)\
**Post date:** [October 14, 2010, 3:14pm UTC](https://forum.kirupa.com/t/matrixtransform-rotatearoundexternalpoint/314999/1 "2010-10-14T15:14:09Z")

</div>

hi all,

after some searching on internet i found the function: [FONT=Courier New]rotateAroundExternalPoint(m:[[COLOR=#0066cc]Matrix[/COLOR], x:[URL=“http://www.kirupa.com/forum/…/…/Number.html”][COLOR=#0066cc]Number[/COLOR], y:[URL=“http://www.kirupa.com/forum/…/…/Number.html”][COLOR=#0066cc]Number[/COLOR], angleDegrees:[URL=“http://www.kirupa.com/forum/…/…/Number.html”][COLOR=#0066cc]Number[/COLOR]](http://www.kirupa.com/forum/../../flash/geom/Matrix.html)) [/FONT][FONT=Verdana]to rotate an object around an external point. [/FONT]

The top of the object will always point at the centerpoint which is exactly what i want.

[FONT=Verdana]It works fine but i was wondering if its possible to rotate it in an oval instead of in a perfect circle…[/FONT]

I think it should be something with the angleDegrees Parameter but im not sure what to do with it. I also tried to set up an own matrix but i failed:doh:

Can someone please give me a push in the right direction to orbit an object in an oval, and where the top of the object always point at the rotation center ?

Thnx!
