Need a math wiz for a Velocity issue.

tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
edited November -1 in Working with GS (Mac)
Maybe this is not actually a difficult thing to figure out however does anyone know how to Calculates a total velocity based on the Linear.Velocity.X and Linear.Velocity.Y

its actually quite frustrating to have that as the only velocity options through attributes but something like the move to behavior uses a single number. How can I use moveTo and match the speed of another actor that is not using a behavior to set the velocity? Any ideas. There has to be a way to determine this magical number.

Thanks
Aaron

___________________________________________________________________________________
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well for anyone who doesn't know this I just figured her out. LOL

    a²+b²=c²

    a = self.linearvelocity.x
    b = self.linearvelocity.y
    c = overall velocity

    now you got your math lesson for the day.
  • old_kipperold_kipper Member Posts: 1,420
    Perhaps time against magnitude between timed x y points of actor you want to get would work?

    ahh! you got the yourself answer before I posted and it looks very sensible
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    old_kipper said:
    Perhaps time against magnitude between timed x y points of actor you want to get would work?

    ahh! you got the yourself answer before I posted and it looks very sensible

    LOL it works perfect too. I found the answer in some info regarding trajectory and velocities. gave it a shot and sure nuff thats it.
  • EdwardFEdwardF Member Posts: 27
    image

    ... is taking notes. This could come in handy.
Sign In or Register to comment.