View Single Post
  #5  
Old July 2nd, 2009, 01:51 AM
Jazzua's Avatar
Jazzua Jazzua is offline
Newbie
 
Join Date: Jul 2009
Location: Warners Bay, Australia
Posts: 8
Country:
Thanks: 0
Thanked 1 Time in 1 Post
Jazzua is on a distinguished road
Default

ok... i figured it out

x = centerX + xradius * cos(angle) ;
y = centerY + yradius * sin(angle) ;

in as3:

Code:
 
neck.x = centerX +  (head.width / 2) * Math.cos(angle);
neck.y = centerY +  (head.height / 2) *Math.sin(angle);
__________________
--------------------------------------------
"Life's far too important to be taken seriously"
--------------------------------------------
Reply With Quote