Skip to content

Commit

Permalink
np random
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots committed Sep 23, 2024
1 parent 034a2bc commit f4efcb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyFlyt/pz_envs/fixedwing_envs/ma_fixedwing_dogfight_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _get_start_pos_orn(self, seed: None | int) -> tuple[np.ndarray, np.ndarray]:
# start out pointing in outward directions equally spaced
start_radian = np.pi / self.team_size * np.arange(
self.team_size * 2
) + np.random.uniform(0.0, 2 * np.pi)
) + np_random.uniform(0.0, 2 * np.pi)
start_radius = np_random.uniform(
low=self.spawn_min_radius,
high=self.spawn_max_radius,
Expand Down

0 comments on commit f4efcb3

Please sign in to comment.