Formula for translating "Move To" speed to "Interpolate" duration

I am about 5 months into development and have finally decided to give up on using "Move To" due to the well documented (intermittent) bug of actors flying off the screen. I have tried to address the problem unsuccessfully. My difficulty now is that I have to change all of the "Move To"'s in my game into "Interpolate" and I don't know how to translate the "Speed" of my "Move To"'s to the "Duration" of "Interpolate". Does anyone know the formula whereby I can accurately work out how long it takes for my actors to "Move To" their location? So that I can then input that into "Interpolate" duration.

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    edited June 2013
    Its probably something like:
    InterpolateDuration = PixelDistance/MoveToSpeed
  • flurospeedoflurospeedo Member Posts: 33
    By Jove! Just tested it and I think that is it exactly! Thank you very much RThurman :)
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    Glad its going to work for you. As I recall;
    Length = Speed*Time
    Speed = Length/Time
    Time = Length/Speed
Sign In or Register to comment.