Unity : Raycast (Part I)

RaycastHit hit;

Inside “other” and “collision” we store the information of object we collide (or trigger).

Now this is a Vector2 variable

--

--

--

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Finally I published an app after 2 years of tutorials

Clicking a link — What happens next?

Different Mesh Visualizations in Kiali

Start Using Regular Expressions Right Now

SWC-102, 103 | Outdated Compiler Version, Floating Pragma

How to use Apache as Reverse Proxy on CentOS & RHEL

Food for Agile Thought #109

We Discuss In Between Coding

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
Matteo Lo Piccolo

Matteo Lo Piccolo

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!

More from Medium

Unity : use Raycast for move the Player

Coroutines in Unity

VR Development — Day #2

Creating A Respawn/Checkpoint System In Unity