fix(ai): map team-relative rotation actions

This commit is contained in:
Josh Creek
2026-08-08 14:54:27 +01:00
parent 7e217df898
commit 57a298dc06
4 changed files with 38 additions and 3 deletions
+3 -1
View File
@@ -209,7 +209,9 @@ func get_action_space() -> Dictionary:
func set_action(action) -> void:
rl_controller.action = ShipActionCodec.from_indices(action)
rl_controller.action = ShipActionCodec.apply_team_frame(
ShipActionCodec.from_indices(action), ship.team
)
func reset():