Controller Components

Tracking Controller

The easy setup includes the animated mounted parts where script manages the elevation-heading limits and controls the tracking speed.

Before a controller will target anything, you must setup a few things and specify a transform of an object to aim. Here are the options available in the inspector tab of a controller component:

Target – A transform of an object the controller will aim at

Body – Specifies the transform of the vertical tracking component along the elevation plane

Mount – Specifies the transform of the horizontal tracking component along the heading plane

Heading tracking speed – The rate at which the component can rotate towards target on the horizontal plane

Elevation tracking speed – The rate at which the component can pivot towards target in the vertical plane

Heading limit – The arc of fire along the horizontal plane. The editor gizmo marked with red

Elevation limit – The arc of fire along the vertical plane. The editor gizmo marked with blue

Nozzle Flaps Controller

The script will tackle the most of the work animating the position of each nozzle flap in response to commands from the script. The options include Flap Position, Turn Limit, and Speed.

Left / Right Engine – References to the nozzle flaps transforms found within the ship’s model.

Servo Current Position – The animation value in the range of 0.0f to 1.0f that controls the position of each nozzle flap piece.

Servo Limit – The limiting angle value that stops the controller from opening the petals further.

Servo Speed – A speed at which the controller animates the petals.