FPS Controller That Flies? (Unity 5.3.1)
Unity noob here, trying to create an FPS controller that flies for one of my levels in a game that I'm making. Basically what I'm trying to do is create a script that would basically fly if I pressed spacebar (jump button) and I can move up/down/side to side. If I dive downwards, I pick up speed, if I soar upwards, I lose speed. If i moved downwards and hit the ground, I'd stop flying and start moving forward. Shift key still is the speed boost like it is on the ground. Hopefully can still shoot projectiles with right click like I can on the ground.
Any ideas? I'm admittedly lost on where to start.
I would start by making a new character controller script for flying, and Id make it disable the walking when ever I wanted to fly.
if you're using a Rigidbody Id strongly consider disabling gravity,Sadly I cant supply code because I don't have any But hopefully this will help you get started