How To Orbit Off Axis ?
Jel
Member Posts: 319
I currently have this as my orbit rule which works well.
<img src="http://needanerd.110mb.com/GSForumFiles/Orbit.png">
But I'm trying to get the actor to orbit off axis kind of link a satellite would. Does anyone know the best way to do this ?
Thanks Jel
Also what's wrong with my image link ¿¿¿
<img src="http://needanerd.110mb.com/GSForumFiles/Orbit.png">
But I'm trying to get the actor to orbit off axis kind of link a satellite would. Does anyone know the best way to do this ?
Thanks Jel
Also what's wrong with my image link ¿¿¿
Comments
self.PositionX - 60*cos( self.Time *100%360)+160
self.PositionY - 120*sin( self.Time *100%360)+240
Darren.
Instead of 240 why not try having a game.attrbute (integer)
Then have a rule setup that interpolates that attribute from 120 to 240 and back again. (or something like that)
Bit messier than one line of code though.
self.PositionY - 120*sin( self.Time *100%360)+game.satellite_orbit.
It needs a little cleaning up on my end but adding a attribute and interpolating it seems to work pretty well.
Is there a problem with posting images into posts at the moment ?
Still no dice
I'll try and absorb the above links tomorrow when my brain hurts less.