Next: , Previous: , Up: Motion   [Contents][Index]


12.3 Fighter Input Controller

Component: FighterInputController

This component implements physics-based flight control with motion similar to that of a fighter jet (or starfighter). ’Thrust’ indicates how much power the engines have in each axis, except that W represents the negative Z axis (so that you can have a different speed in reverse). It takes horizontal & vertical axis inputs to apply forward/reverse and strafe thrust, and keys can be configured to roll the craft. This component works well with the AirBrakes component.

Field of FighterInputController: float constantThrust

How much constant forward thrust should be applied?

Default value: 0.0f

Field of FighterInputController: KeyCode upThrusters

Key for activating elevators

Default value: KeyCode.Space

Field of FighterInputController: KeyCode downThrusters

Key for activating down thrusters

Default value: KeyCode.LeftShift

Field of FighterInputController: float pitchTorque

How hard should we pitch?

Default value: 60.0f

Field of FighterInputController: float yawTorque

How hard should we yaw?

Default value: 60.0f

Field of FighterInputController: float rudderTorque

How much force is applied by the rudder?

Default value: 240.0f

Field of FighterInputController: KeyCode pitchCCW

Key for pitching counter-clockwise

Default value: KeyCode.Q

Field of FighterInputController: KeyCode pitchCW

Key for pitching clockwise

Default value: KeyCode.E

Field of FighterInputController: float constantThrust

How much constant forward thrust should be applied?

Default value: 0.0f

Field of FighterInputController: KeyCode upThrusters

Key for activating elevators

Default value: KeyCode.Space

Field of FighterInputController: KeyCode downThrusters

Key for activating down thrusters

Default value: KeyCode.LeftShift

Field of FighterInputController: float pitchTorque

How hard should we pitch?

Default value: 60.0f

Field of FighterInputController: float yawTorque

How hard should we yaw?

Default value: 60.0f

Field of FighterInputController: float rudderTorque

How much force is applied by the rudder?

Default value: 240.0f

Field of FighterInputController: KeyCode pitchCCW

Key for pitching counter-clockwise

Default value: KeyCode.Q

Field of FighterInputController: KeyCode pitchCW

Key for pitching clockwise

Default value: KeyCode.E


Next: , Previous: , Up: Motion   [Contents][Index]