Skip to content
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

The missiles fail to hit the target. #72

Open
KevinGrey opened this issue Jun 8, 2023 · 1 comment
Open

The missiles fail to hit the target. #72

KevinGrey opened this issue Jun 8, 2023 · 1 comment

Comments

@KevinGrey
Copy link

I apologize for my unfamiliarity with GitHub, as I accidentally deleted the previous issue. Allow me to restate the problem I encountered and the temporary solution:

While configuring dogfight on the new workstation, I encountered an issue. When the target device locks onto the opponent and the missile device launches the missiles, they consistently deviate from the target and continue to circle around it, even when the opponent is flying at a constant speed without any turns. However, when I configured it on my desktop computer and personal laptop, it worked properly. You can find a video showcasing the issue below:

20230608-105405.mp4

My temporary solution was to modify the "angular_frictions" value in the missile parameters
https://github.com/ErkMkd/dogfight-sandbox-hg2/blob/69815f4804b87bf0ca250d2f49d371c6c9fc4dbd/source/missile_aim_sl.py#LL21C7-L21C7
and, as a result, I had to increase the value of "target_collision_test_distance_max"
https://github.com/ErkMkd/dogfight-sandbox-hg2/blob/69815f4804b87bf0ca250d2f49d371c6c9fc4dbd/source/Machines.py#LL876C54-L876C54
to resolve the issue.
Thanks for the previous responses from @astrofra and @ErkMkd .

@KevinGrey
Copy link
Author

Additionally, during my exploration today, I discovered that the issue was likely caused by the graphics card, resulting in different effects of the same code on different computers. My desktop computer and laptop are equipped with integrated graphics card Intel UHD Graphics 630. The code on both machines uses default settings and can successfully hit the target. However, when using the NVIDIA graphics card for acceleration, this problem arises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant