For weeks, I’m building Controller Scripts to control cars, tanks, locomotion, airplanes, helicopters…
The samples I found on the web was not really perfect and quiet difficult to implement.
What I’m planning to do is to build more efficient and easy-to-use C# scripts.
In a few drag&drops, you can take control of any kind of helicopter mesh… you just need to reference the rotors gameobjects, set your rigidbody and colliders, set your engine power and angular forces parameters.
This script runs with 2 displacement axis, both normalized, and a sideways and forward torque multiplier… like a real helicopter.
That also means it’s quiet easy to bind it to a Keyboard or a Touch (for mobile) controller.
The rotor sound pitch is synchronized with the corresponding velocity… as a 3D sound, it is really perfect!
ShellLauncher and MachineGun scripts will be part of a complete framework soon.
For each controller script, I also implemented an “arcade mode” to simplify the gameplay but real gamers will love the “full-control” 🙂
Check the demo video below.
Sorry for the ugly Terrain, I’m planning to create a new one for all my demos.