Create a "Basic Helicopter Controller" for your Unity projects.
The intention of this release was to provide basic vehicle functionality as a starting point as base fully functional in terms of an opinion of basic but leave out optional continuances in the hopes that this will be used as starting point / base for folks to then as such continue on with and improve upon.
NOTE: This project was developed while / for using Unity 2021+ & 2022+ & Unity 6
Old_Input_System Directory NOTE:
NOTE: This currently still uses the Old Input System, so as such depending on what version of Unity you may be using it may be necessary to make sure such or both is enabled in project settings.
New_Input_System Directory NOTE:
NOTE: This currently uses the New Input System (ie: Unity 21 - 22 & Unity 6 variants provided), so as such depending on what version of Unity you may be using it may be necessary to make sure such or both is enabled in project settings.
New_Input_System Directory Documentations NOTE: If there is any confusion with any documentation during setup in regards to "Input Actions", just note the following "Input Action Assets" found below:
For player:
Input Actions:
Player Controls: PlayerControls (Input Action Asset)
For vehicle:
Input Actions:
Helicopter Controls: HelicopterControls (Input Action Asset)
New_Input_System:
- Roll: A & D [Keyboard] / Left Stick [Gamepad]
- Pitch: S & W [Keyboard] / Left Stick [Gamepad]
- Yaw: Q & E [Keyboard] / Right Stick [Gamepad]
- Decrease throttle: Shift [Keyboard] / D-Pad Down [Gamepad]
- Increase throttle: Control [Keyboard] / D-Pad Up [Gamepad]
- Change Cameras: V [Keyboard] / D-Pad Left [Gamepad] (ie: Rear Camera, Belly Camera & Cockpit Camera)
Old_Input_System:
- Roll: A & D
- Pitch: S & W
- Yaw: Q & E
- Decrease throttle: Left Shift
- Increase throttle: Left Control
- Change Cameras: V (ie: Rear Camera, Belly Camera & Cockpit Camera)
New_Input_System:
(if the provided "as is" entry script is added)
- Enter Vehicle: E [Keyboard] / Button North [Gamepad]
- Exit Vehicle: F [Keyboard] / Button South [Gamepad]
Old_Input_System:
(if the provided "as is" entry script is added)
- Enter: E
- Exit: F
Entry Script Note: the provided entry script is provided "as is" simply as a starting point as there are some further things that will need to be touched upon as you will find when you start tinkering with such. So note the starting point provided was the intention to then allow you the user to continue to expand upon this script further.
New_Input_System:
(player controller provided for entry script example)
- Player Forward: W [Keyboard] / Left Stick [Gamepad]
- Player Reverse: S [Keyboard] / Left Stick [Gamepad]
- Player Left: A [Keyboard] / Left Stick [Gamepad]
- Player Right: D [Keyboard] / Left Stick [Gamepad]
- Player Jump: Space [Keyboard] / Button South [Gamepad]
- Player Sprint: Shift [Keyboard] / Left Shoulder [Gamepad]
- Player Look: Delta [Mouse] / Right Stick [Gamepad]
Old_Input_System:
(player controller provided for entry script example)
- Player Forward: W
- Player Reverse: S
- Player Left: A
- Player Right: D
- Player Jump: Space
- Player Sprint: Left Shift
NOTE: 1 Helicopter model being: "MD-500 Defender Helicopter", is included for setup and usage example.
NOTE: 1 Helipad model being: "Helicopter Land / Helipad / Heliport", is included for setup and usage example.
Simply follow the linkages found below for documentation information / instruction respective to the version say for example either Unity 2021+ & Unity 2022+ or Unity 6....
New_Input_System:
-
Unity 20221+ & 2022+ => Files, ReadMe, docs: https://github.com/deathwatchgaming/Unity-Basic_HelicopterController/tree/main/New_Input_System/Unity-2021-2022
-
Unity 6 => Files, ReadMe, docs: https://github.com/deathwatchgaming/Unity-Basic_HelicopterController/blob/main/New_Input_System/Unity-6
Old_Input_System:
-
Unity 20221+ & 2022+ => Files, ReadMe, docs: https://github.com/deathwatchgaming/Unity-Basic_HelicopterController/tree/main/Old_Input_System/Unity-2021-2022
-
Unity 6 => Files, ReadMe, docs: https://github.com/deathwatchgaming/Unity-Basic_HelicopterController/blob/main/Old_Input_System/Unity-6