Issue with target drone code: Can pass through obstacles, and hides inside them. #2
Unanswered
RKResident
asked this question in
Q&A
Replies: 1 comment
-
|
It is not intentional but doe to the constraint of avoiding the player, which is more important than avoiding the obstacles. You can work with your corrected version till then, I will fix this soon |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is some issue with target drone code due to which it can pass through obstacles, and hides inside them. Is this intentional or not?
This is the corrected code
`
def _update_target_ai(self):
"""Adversarial AI: Gaussian Random Walk + LoS Breaking + Wall Sliding."""
tx, ty = self.target_pos
px, py = self.player_pos
Beta Was this translation helpful? Give feedback.
All reactions