Moving away from the orbit
Following t-shirtbooth's tutorial i managed to get an object orbit around my main actor. Now i would like to move that object away from the orbit using it's position around the main actor. So if A orbits around B and A's position is 45° compared to the center of B, wich rule i need to use to throw A in 45° direction?
Best Answer
-
gyroscope I am here.Posts: 6,598
Hi @mikbio
The following is off the top of my head, but should work:
Make a boolean called OrbitSwitch set to true
Put your orbit rules in a new rule: When OrbitSwitch is true
Now in the otherwise section:
When ActorA.Position.X is > ---your number here
And
When ActorA.Position.Y is > ---your number here
Change velocity with direction set to 45°
Hope that gives you a direction to go in, if you excuse the pun.
Edit: I'm sure you know to set OrbitSwitch to false when you're ready for your actor to shoot off but thought I'd mention it all the same.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers