mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
15 lines
457 B
GDScript
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
|