Skip to content

Commit

Permalink
fix thing
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots committed Sep 19, 2024
1 parent 4032542 commit 2258985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyFlyt/pz_envs/fixedwing_envs/ma_fixedwing_dogfight_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ def _compute_boundary_rewards(self) -> np.ndarray:

# reward for being too close to anyone, minus diagonal to ignore self
boundary_rewards -= np.sum(
4.0
5.0
* (
(self.current_distances < 5.0)
- np.eye(self.current_distances.shape[0])
)
* (10.0 - self.current_distances),
* (5.0 - self.current_distances),
axis=-1,
)

Expand Down

0 comments on commit 2258985

Please sign in to comment.