Hello - really enjoying the course so far and have come across my first problem which I cannot resolve.
I have managed to instantiate my bullet and have it firing, however, its direction is very strange. At the start, it is only shooting to the left (no matter which way my character is), I have logged the velocity and it’s correctly going positive and negative, but in both instances the bullet only goes left. When I move around my map, the bullet is firing in different directions (like diagonally).
Also, my bullet instantly destroys when I implement the destroy functionality.
Here are some of my code snippets, let mw know if you need more info!!
Bullet Prefab:
Player Movement script: OnAttack() Method (I realise there’s a typo in the script)
Bullet Script