BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay Class Reference
+ Inheritance diagram for BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay:

Detailed Description

The component purpose is to expose thrusters properties as public properties.

You can animate this component properties, and each frame their values will be relayed to all connectedThrusters.

Because of some Unity tech limitations and thruster code you cannot control directly the thruster using animations, so we made a workaround by creating this class.

Member Data Documentation

◆ connectedThrusters

BThrusterBase [] BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.connectedThrusters

Which thrusters will be exclusively controlled by this component?

◆ controlThrottle

bool BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.controlThrottle = true

The throttle value will be enforced to all connectedThrusters each frame if true, otherwise ignored.

◆ throttle

float BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.throttle = 0f

If controlThrottle is true, this will be the value of all connectedThrusters, updated each frame.

◆ controlMinThrottle

bool BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.controlMinThrottle = false

The minThrottle value will be enforced to all connectedThrusters each frame if true, otherwise ignored.

◆ minThrottle

float BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.minThrottle = 0f

If controlMinThrottle is true, this will be the value of all connectedThrusters, updated each frame.

◆ controlMaxThrottle

bool BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.controlMaxThrottle = false

The maxThrottle value will be enforced to all connectedThrusters each frame if true, otherwise ignored.

◆ maxThrottle

float BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.maxThrottle = 100f

If controlMaxThrottle is true, this will be the value of all connectedThrusters, updated each frame.

◆ controlIgnitionOn

bool BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.controlIgnitionOn = false

If true the state of the connected thrusters will be enforced by ignitionOn value, otherwise ignored.

◆ ignitionOn

bool BArtisan.Thrusters.Helpers.Controllers.BThrusterPropertyRelay.ignitionOn = true

When controlIgnitionOn is true the state of this param will be passed to all connected thrusters.

◆ debugLog

bool BArtisan.Thrusters.BBaseMonobehaviour.debugLog = false
inherited

Enable to debug this component. Warning: it may result in CPU intensive debug messages (each frame).