Skip to content

Commit a8e8766

Browse files
committed
amend
1 parent 4a5b53e commit a8e8766

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vmas/scenarios/football.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024.
1+
# Copyright (c) 2022-2025.
22
# ProrokLab (https://www.proroklab.org/)
33
# All rights reserved.
44

@@ -1091,7 +1091,9 @@ def process_action(self, agent: Agent):
10911091
shoot_force = torch.zeros(
10921092
self.world.batch_dim, 2, device=self.world.device, dtype=torch.float32
10931093
)
1094-
shoot_force[..., X] = agent.action.u[..., -1] + self.u_shoot_multiplier
1094+
shoot_force[..., X] = (
1095+
agent.action.u[..., -1] * 2.67 * self.u_shoot_multiplier
1096+
)
10951097
shoot_force = TorchUtils.rotate_vector(shoot_force, agent.state.rot)
10961098
agent.shoot_force = shoot_force
10971099
shoot_force = torch.where(

0 commit comments

Comments
 (0)