- Home /
Decompose Vector
Does Unity have functions for decomposing a vector into two vectors?
Given Vector A, and Vector B(an identity with magnitude 1) I want to find the component of vector A in the direction of B.
Essentially what is shown here except in 3 dimensions:
Answer by Hellium · Jun 29, 2015 at 09:44 AM
That's basic vector arithmetic notions. The web is full of resources about this.
Unity has implemented the following function to find what you want : Vector3.Project
http://docs.unity3d.com/ScriptReference/Vector3.Project.html
Did the solution work ? Any feedback is greatly appreciated ! ;)
"That's basic vector arithmetic notions. The web is full of resources about this." Yes I understand the arithmetic, just wanted to know if Unity already had this implemented. Thanks.
Your answer
Follow this Question
Related Questions
Simple Maths Problem - Help! 1 Answer
Math exponential number conversion 1 Answer
Any Good References for Game Math 1 Answer
Implement the equation as a code? 1 Answer
Random.seed Repeating 2 Answers