Learn to code by making a 2D space shooter game.

we cast the vectors as Vector2 since transform.position is vector3
transform.up is yellow Vector which direction to look of the projectile.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store