Unity : Raycast (Part III)

Drag and drop it into Player script
Create a tag Plane for the Plane

Little tips:

probably you know already, but if we a have a prefab and we try to Instantiate it, if in this method we don’t set a position, the position of Instantiation is the same that we store inside the prefab.

Sphere position is 1, 3, 1
Even if we hit the “Plane”, the position of Instantiation is 1, 3, 1
hit.Point return a Vector3

--

--

--

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

ImpactMarket: The Global UBI Platform Powered by DataHub

JENKINS- Industry Implementations!!

Exchange servers connections chart per protocol/counter

Software Developers : Scapegoats For Security Vulnerabilities

Scale Up your Business with the Planet’s most active Personal Messaging Platform — Whatsapp…

MVVM Design Pattern in Flutter

URL shortener in Go. Proof of concept.

Food for Agile Thought #101

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 : Raycast (Part II)

Creating a Moving Platform in Unity

Using Multiple Post Processing Profiles and Reflection Probes

Loading Scenes In Unity