Movement Script
W A S D Movement Script for the Player.
Missile Script
Script to spawn in a missile when the Player hits the Space key.


Writing this 3D movement script was fun to do but it was difficult to understand it. I had a closer look at the script as I wanted to use the 3D movement script with the NavMesh for the enemies for my Game Prototype.
After writing the script I messed around with the layout by adding a physic material so the player would bounce back from the wall. I also tried out different speeds for the player.
Added a physics collider to the walls so if the player touches the wall they would bounce back

Video of the Movement Script in action

Added extra platforms with physics collider and attached the missile script to the player.
I managed to get the script to work and spawn in missiles. But for some reason whenever I fired a missile the player would get a recoil which I didn't want.

Video of the 3D movement script and missile script in action.