Files
CosmicClash/Game/scripts/rl_ship_controller.gd

15 lines
457 B
GDScript

class_name RLShipController
extends ShipController
# Controller for externally-driven ships (RL training and trained-policy
# inference). Something else — a ShipAIController during training, an
# AIShipController at play time — writes into `action`; the ship pulls it
# each physics tick like any other controller. The ship never knows it is
# being trained.
var action: ShipAction = ShipAction.new()
func get_action() -> ShipAction:
return action