Question by
Darkwinger · Oct 29, 2016 at 02:33 PM ·
vector3anglesvectorsunwrap
Finding Angle Between Vectors
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. Hope I was clear enough. C# is preferable.
Comment
Answer by Namey5 · Oct 30, 2016 at 05:23 AM
Unity's Vector3 class has a built-in function for finding angles;
Your answer
![](https://koobas.hobune.stream/wayback/20220612095641im_/https://answers.unity.com/themes/thub/images/avi.jpg)