Math in Unity : Vectors (Part VII)

posOneX -posTwoX +
posOneY -posTwoY +
posOneZ -posTwoZ

then, the square root of the result

The formula is

vector.x / = length
vector.y / = length
vector.z / = length

--

--

--

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

Information Architecture and Technical Writing

Waze — Louisville’s First Internal Hackathon

Food for Agile Thought #113

Deploy Microservices With Helm Operators

Things you need to know about Agile Methodology in 2021

Introduction to Java Native Interface: Establishing a bridge between Java and C/C++

How HTTP 2.0 is different from HTTP 1.1

How to Hire Android Developers

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

Using Signal Emitters in Timeline to Access C# Scripts

Unity : Cinemachine and Timeline (Part IV)

Unity TileMap: Smooth Movement in a Top-Down Game

Creating a Sci-Fi Lab Room In Unity