Results 1 to 5 of 5

Thread: moveOverTime with deceleration time?

  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts

    Lightbulb moveOverTime with deceleration time?

    Hello,

    I was looking for moveOverTime function with deceleration time (like moveZ() ). So is there any algorithm for that?

    Regards, RobsoN.

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by RobsoN View Post
    Hello,

    I was looking for moveOverTime function with deceleration time (like moveZ() ). So is there any algorithm for that?

    Regards, RobsoN.
    There is no algorithm. You just set the time in seconds. That's it!

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Well, the deceleration time could be "simulated" by calculating like 4 points in the deceleration-line (oldx,oldy to newx,newy), and each deceleration-point is used to move the hud slower to it.
    Last edited by kung foo man; 2nd June 2013 at 22:57. Reason: declaration=deceleration lol
    timescale 0.01

  4. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kung foo man View Post
    Well, the deceleration time could be "simulated" by calculating like 4 points in the declaration-line (oldx,oldy to newx,newy), and each declaration-point is used to move the hud slower to it.
    I'm not 100% sure I know what you're saying, but here goes: moveOverTime() has only 1 argument. You cannot enter more than 1 argument, because it will throw an error. It is not like moveZ() as that is capable of 4 arguments. The closest you can come to entering more than 1 argument is by using randomIntRange() and entering 2 integers for randomizing between them.
    Last edited by Tally; 2nd June 2013 at 22:15.

  5. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Yea, the 4 deceleration-points would need 4 extra-moveOverTime()'s


    Would look like this:

    Click image for larger version. 

Name:	moveovertime.jpg 
Views:	31 
Size:	66.6 KB 
ID:	294
    timescale 0.01

  6. The Following User Says Thank You to kung foo man For This Useful Post:

    RobsoN (3rd June 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •