View previous topic :: View next topic |
Author |
Message |
microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Tue Aug 16, 2016 5:03 pm Post subject: Travel-time Prediction? |
|
|
Is this possible? Like make a script to predict the next frame x and y of an object?
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
|
Back to top |
|
|
microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Tue Aug 16, 2016 5:49 pm Post subject: |
|
|
Zanzer wrote: | http://stackoverflow.com/questions/14715174/how-do-i-work-out-the-future-position-of-a-moving-object |
Thanks man, also, can this also be used to predict it even if the object goes from moving in on direction in one frame to another direction in another frame?
|
|
Back to top |
|
|
cooleko Grandmaster Cheater Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Wed Aug 17, 2016 9:15 am Post subject: |
|
|
no, but if you run the algorithm a second time, it will generate a new prediction.
|
|
Back to top |
|
|
microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Wed Aug 17, 2016 3:22 pm Post subject: |
|
|
cooleko wrote: | no, but if you run the algorithm a second time, it will generate a new prediction. |
Know of anywhere I can learn to make an auto-run script that will print or find a result every millisecond? Also, you're talking about the algorithm in the picture he made right? Just say yes/no, i'll find it.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Aug 17, 2016 6:23 pm Post subject: |
|
|
Code: | if mytimer == nil then
mytimer = createTimer(nil, false)
end
mytimer.Interval = 1
mytimer.OnTimer = function(timer)
-- do some calculations
print("spam")
end
mytimer.Enabled = true |
|
|
Back to top |
|
|
microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Wed Aug 17, 2016 7:57 pm Post subject: |
|
|
Zanzer wrote: | http://stackoverflow.com/questions/14715174/how-do-i-work-out-the-future-position-of-a-moving-object |
Is it normal to not know what to do with this if you don't know trigonometry? (i've never taken it)
|
|
Back to top |
|
|
cooleko Grandmaster Cheater Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Thu Aug 18, 2016 12:45 am Post subject: |
|
|
Yes, but it is all just math, you can learn it pretty quickly and impress (or the opposite) your friends when it comes time to use it in school.
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sat Aug 27, 2016 2:05 am Post subject: |
|
|
This is what ID software invented back in the day to do online gaming.
_________________
|
|
Back to top |
|
|
|