Detailed Description
This is an automatic controller of the thrusters. It will set all the thrusters to maximum throttle for "maxThrottleForSeconds" seconds, and then set to the minimum throttle for "minThrottleForSeconds" seconds. There is no transition/animation between SetMinimumThrottle and SetMaximumThrottle.
If both durations are 0 then it will just set to maximum throttle once.
The main use case is when a thruster is needed to auto-start and stay at full throttle all the time.
Member Data Documentation
◆ thrusters
BThrusterBase [] BArtisan.Thrusters.Helpers.Controllers.BThrusterContinuousController.thrusters |
Which thrusters it will be controlled. Max/Min will be executed consecutively (phase 1, phase 2, phase 1 ...)
◆ maxThrottleForSeconds
float BArtisan.Thrusters.Helpers.Controllers.BThrusterContinuousController.maxThrottleForSeconds = 0f |
How many seconds to go at full speed (phase 1). 0 to disable.
◆ minThrottleForSeconds
float BArtisan.Thrusters.Helpers.Controllers.BThrusterContinuousController.minThrottleForSeconds = 0f |
How many seconds to go at minimum speed (phase 2). 0 to disable.
◆ autoStart
bool BArtisan.Thrusters.Helpers.Controllers.BThrusterContinuousController.autoStart = true |
When this GO is activated, it will turn ON the thrusters.
◆ debugLog
|
inherited |
Enable to debug this component. Warning: it may result in CPU intensive debug messages (each frame).
Member Function Documentation
◆ RestartCoroutine()
|
virtual |
Call this function after each time you update maxThrottleForSeconds or minThrottleForSeconds