You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a small bug in the y position of the players and the ball in the animation compared to reality. What we see as the y_pos in the animation is in fact the reflection of the y_pos. You can compare any play you have with highlights on youtube and you will understand what I mean.
A very easy fix would be to adjust the Ball.py and Player.py files as follows:
Hey Kanstantsin,
There is a small bug in the y position of the players and the ball in the animation compared to reality. What we see as the y_pos in the animation is in fact the reflection of the y_pos. You can compare any play you have with highlights on youtube and you will understand what I mean.
A very easy fix would be to adjust the Ball.py and Player.py files as follows:
self.y = ball[3] --> self.y = Constant.Y_MAX - ball[3]
and
self.y = player[3] --> self.y = Constant.Y_MAX - player[3]
obviously, you will need to import the Constant file in both Ball and Player.
Great work otherwise, thanks for posting!
The text was updated successfully, but these errors were encountered: