Math Pros- I need help with Tshirt's Orbit Demo
Hi everyone, I am having problems with Tshirts Orbit template which you can find here: http://gshelper.com/?p=176
basically I need to be able to get the orbiting object to start in another position during the orbit.
Is it possible to start the orbit from here: (for example)
http://imageshack.us/photo/my-images/600/schermata20110629a42337.png/
or here:
http://imageshack.us/photo/my-images/835/schermata20110629a42341.png/
?
Here is tshirtbooth's math from the demo:
100*cos( self.Time *-200%360)+ game.sunX
100*sin( self.Time *-200%360)+ game.sunY
vectorToAngle( game.sunX – self.Position.X , game.sunY – self.Position.Y )
thanks!
basically I need to be able to get the orbiting object to start in another position during the orbit.
Is it possible to start the orbit from here: (for example)
http://imageshack.us/photo/my-images/600/schermata20110629a42337.png/
or here:
http://imageshack.us/photo/my-images/835/schermata20110629a42341.png/
?
Here is tshirtbooth's math from the demo:
100*cos( self.Time *-200%360)+ game.sunX
100*sin( self.Time *-200%360)+ game.sunY
vectorToAngle( game.sunX – self.Position.X , game.sunY – self.Position.Y )
thanks!
Comments
100*cos(self.OffsetAngle+ self.Time *-200%360)+ game.sunX
100*sin(self.OffsetAngle+ self.Time *-200%360)+ game.sunY
This is assuming the self.Time starts at 0.
So set the self.OffsetAngle to 135 for the first image and 315 for the 2nd image. Or some angle close to those.
Code Monkey beat me to it. It's really easy.
Chris
@cmw333 Thanks, I got the answer
Thanks
Aaron
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
Chris