Actor orbiting around another actor issue question
Hey all!
So I followed tshirtbooth's tutorial on how to orbit an actor around another (and yes I have watched it over and over again to make sure I didn't go wrong anywhere), obviously what I'm trying to achieve is this:
http://www.mediafire.com/view/?5x8gd3xm2u64ox3
Although, what I'm getting is this:
http://www.mediafire.com/view/?ulr8k84h8swmdws
Does anyone know how I could have that actor stay the way it is in the first picture and not have it rotate 90 degrees when the constraint is activated?
Thanks in advance!
Carl
So I followed tshirtbooth's tutorial on how to orbit an actor around another (and yes I have watched it over and over again to make sure I didn't go wrong anywhere), obviously what I'm trying to achieve is this:
http://www.mediafire.com/view/?5x8gd3xm2u64ox3
Although, what I'm getting is this:
http://www.mediafire.com/view/?ulr8k84h8swmdws
Does anyone know how I could have that actor stay the way it is in the first picture and not have it rotate 90 degrees when the constraint is activated?
Thanks in advance!
Carl
Best Answers
-
RThurman Posts: 2,881
Two quick ways:
1) Draw your graphic rotated by 90 degrees
or
2) Add 90 degrees to your calculation of the 'earth's' rotation. Something like:
Constrain Attribute: Self.Rotation To:vectorToAngle(game.sunX-self.Position.X, game.sunY-self.Position.Y)+90
Answers
Look for the project I posted