Public Methods
Method
Description
SetRotorcraftSettings()
Updates the rotorcraft settings from the RotorcraftSettings ScriptableObject. Called in Awake() and from the update button located on the component in the inspector.
MovementPenalty(float)
Used to change the MaxSpeed of the rotorcraft. Example use: slowing down rotorcraft in heavy weather.
SteeringPenalty(float)
Used to change the Steering speed of the rotorcraft. Example use: harder to turn in foliage.
ToggleRotors()
Toggles the engine to the opposite of its current state.
EnabledRotors()
Turns the engine on.
DisableRotors()
Turns the engine off.
Throttle(float)
Makes the rotorcraft move up or down, pass in an int to determine the direction.
1 for up.
-1 for down.
ControlPitchForward()
Move the rotorcraft forward.
ControlPitchBackward()
Move the rotorcraft backwards.
ControlYaw(float)
Controls the turning of the rotorcraft, pass in an int to determine the direction. -1 for left. 1 for right.
ControlRoll(float)
Move sideways, left or right. Pass in an int to determine the direction.
-1 for left. 1 for right.
Boost()
Boosts the rotorcraft.
OneShotBoost(float)
Performs a boost over a set amount of time (in seconds), pass in a float for the desired boost length.
StopBoost()
Stops the rotorcraft from boosting, returning to a normal speed.
SetPosition(Vector3, Quaternion)
Set the position and rotation of the Rotorcraft. This will also set the speed and turning to 0.
Last updated