Trouble using Sin/Cos but will totally use another method!

iamcarteziamcartez Houston, TexasMember Posts: 648

After doing a little research with sin | cin, I'm trying to get my plane to do 360 spins. The formula I am using now works however I noticed that the more time pass... the bigger the 360/donuts get and after about 90 seconds... it is impossible to do a complete donut... And then when I wait another minute or so, I can do complete 360s again...

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    edited October 2015

    You don't need to do any trig stuff.

    Just use self.shipSpeed in both the rotate speed and the move speed. It will do a perfect loop.

    (Then you can start using variations of self.shipSpeed in each behavior to increase the loop area and/or the loop speed.)

  • iamcarteziamcartez Houston, TexasMember Posts: 648

    Oh my goodness, it feels like I tried that before and it didn't work lol... thanks!!!

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    @iamcartez said:
    Oh my goodness, it feels like I tried that before and it didn't work lol... thanks!!!

    It won't work if you change the move behavior to "relative to scene." Make sure you leave it on "relative to actor" and all will be well.

Sign In or Register to comment.