-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to know how the AI calculates where the ball lands #8
Comments
@DavinciEvans The landing point of the ball is calculated by the function pikachu-volleyball/src/resources/js/physics.js Lines 733 to 788 in 8203735
As you can see, the code in pikachu-volleyball/src/resources/js/physics.js Lines 423 to 485 in 8203735
What does it mean? I guess maybe you can see it now:) There is also a function pikachu-volleyball/src/resources/js/physics.js Lines 955 to 1032 in 8203735
I think you can now analyze this function by yourself! If you have any more question or need some help, please let me know:) |
Sorry for my neglect and the very very very very late response. ;) I just noticed this open issue and saw your reply. Although I have already solved this problem using reinforcement learning and behavioural trees, thank you very much for your serious reply, which still inspires me and gives me a lot of inspiration. And it is indeed a good approach, I need to do a lot of practice to beat this AI. I have a few more questions: although I can predict the landing point, how can I tell when to jump and when to use the power hit? |
It is nice to see the project you share! I am a Unity learner and trying to repeat your work in Unity. But the code of AI is a little hard. I have read the
physics.js
but I am a Javascript noob and not totally understand it. 😢Could you use a simple text or some mathematical formulas to describe it? I will appreciate that!
(I am not a native English speaker, maybe you can understand my statement xD)
The text was updated successfully, but these errors were encountered: