# Finding angles between Vectors to Work Out If Three of Them are Collinear

So... I'm working on a rope swing prototype and in short, I need to find an angle between some vectors or if I can can draw a straight-line between three different vectors. I've been searching for ages but can't seem to find any clear solution.

Say I have three vectors, Vector1,Vector2 and Vector3, I need to find the angle between Vector1 and Vector3 and Vector1 and Vector2. If they're the same then I unwrap the rope.

The other way to do this, is just if I can draw one straight line through all three Vectors then I unwrap.

I think I might be able to use the equation of a straight line, but I'm not sure how to apply the maths to vector positions.

Hope I was clear enough. C# is preferable.

**Answer** by doublemax
·
Oct 29, 2016 at 09:23 PM

I tried using that already, but what it does is return a an angle using the origin as the 'centre' or pivot of the angle.So it works in some situations, but mostly it just won't work.

Probably should've put that in my answer.

Can you post a picture that shows what exactly you're trying to achieve?

### Your answer

### Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.

### Follow this Question

### Related Questions

Finding Angle Between Vectors 1 Answer

How to get local angle of travel 0 Answers

Get angle of two Vector3s 1 Answer

how to calculate the angle between two vectors? 6 Answers

Acquiring a negative angle? 1 Answer