We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a5b53e commit a8e8766Copy full SHA for a8e8766
vmas/scenarios/football.py
@@ -1,4 +1,4 @@
1
-# Copyright (c) 2022-2024.
+# Copyright (c) 2022-2025.
2
# ProrokLab (https://www.proroklab.org/)
3
# All rights reserved.
4
@@ -1091,7 +1091,9 @@ def process_action(self, agent: Agent):
1091
shoot_force = torch.zeros(
1092
self.world.batch_dim, 2, device=self.world.device, dtype=torch.float32
1093
)
1094
- shoot_force[..., X] = agent.action.u[..., -1] + self.u_shoot_multiplier
+ shoot_force[..., X] = (
1095
+ agent.action.u[..., -1] * 2.67 * self.u_shoot_multiplier
1096
+ )
1097
shoot_force = TorchUtils.rotate_vector(shoot_force, agent.state.rot)
1098
agent.shoot_force = shoot_force
1099
shoot_force = torch.where(
0 commit comments