mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
fix(ai): map team-relative rotation actions
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user