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
Follow this Question
Related Questions
SignedAngle returning wrong angles 0 Answers
Using ProjectOnPlane to slide around adjacent edges 1 Answer
Vector3 setting condition with the values 0 Answers
Get angle of two Vector3s 1 Answer