Maths Pros Orbit Demo Problem #2
Hello all! I am having a second problem with this demo made by tshirt and I need the maths pro's advice.
Basically I need the orbiteer to slow down to a stop and then restart continuing it's orbit. How can I do this?
I have worked out that you decide the speed of the orbit by changing the value after self.Time in the expression.
This is the maths of 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 )
However when I try to change the speed of the orbiteer IN GAME it goes back to the start of the orbit. If I change the speed of the orbit before I preview the game, it works correctly.
If anyone can help please do!
Thanks in advance!
Giacomo
Basically I need the orbiteer to slow down to a stop and then restart continuing it's orbit. How can I do this?
I have worked out that you decide the speed of the orbit by changing the value after self.Time in the expression.
This is the maths of 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 )
However when I try to change the speed of the orbiteer IN GAME it goes back to the start of the orbit. If I change the speed of the orbit before I preview the game, it works correctly.
If anyone can help please do!

Giacomo
Comments
kipper
@everyone A work around is possible if I can calculate the "offset" of the orbiteer anywhere it is in the orbit. Anyone know how to calculate the offset of the actor anywhere it is in the orbit? (CodeMonkey? Tshirt?)
I need to find the angle (the offset) where the orbiteer is located in the orbit so that it continues from where it left off. It's very difficult to explain.
Giacomo
P.S. If you don't understand I can post a video.
Summary question of the thread:
Is it possible to calculate the angle at which the actor is in the orbit?
Giacomo