Home > other >  In horse racing game, under the condition of given rankings, AI behavior how to write
In horse racing game, under the condition of given rankings, AI behavior how to write

Time:09-21

Demand is the server will be given rankings, ranked in the client to perform, that is, the first half of the top is not real first place position, and run the first may be temporarily run last, how to write about the AI, please give a train of thought, just do not how long, development,

CodePudding user response:

Asked what kind of planning to form first, and then a false line, just like drawing function

CodePudding user response:

Is given first place to the second: A, B
Distance is 120 m as A time must be A minimum of B is the most
Va initial velocity is 10 m/s a=10 m/s Vmax=50 m/s so time is: 50 ^ 2-10 ^ 2=2 * 10 * s, s=120 m
Vb velocity was 20 m/s a=8 m/s Vmax=40 m/s so time is: 40 ^ 2-20 ^ 2=2 * 6 * s, s=100 m

According to Time. DeltaTime and more fundamental physics formula can be displayed on the screen
The effect of the present is the beginning of the B in front but slightly lower acceleration was finally A transcend
Where variables are static here to demonstrate the dynamic modification can be slightly
Va acceleration of course you also can be divided into two section of the first paragraph 5 second paragraph 20 can simulate the behind A prophase slowly but sudden acceleration
You can also according to the upstairs said ask, what is planning the specific manifestation in the modified
  • Related