- #1
twoski
- 181
- 2
Let's say i have 2 arbitrary vectors in a 3d space. I want to project Vector A to Vector B using a specified normal.
edit: better image
A is green, B is red, C is red arrow. Blue is result.
In this case, i want to project green vector to red vector in the red direction. This would give me the blue vector as a result.
I'm working in unity and they have a projection function, but it doesn't operate how i want it to... So i guess i need to make my own.
Here is the projection function they do have: https://docs.unity3d.com/ScriptReference/Vector3.Project.html
edit: better image
A is green, B is red, C is red arrow. Blue is result.
In this case, i want to project green vector to red vector in the red direction. This would give me the blue vector as a result.
I'm working in unity and they have a projection function, but it doesn't operate how i want it to... So i guess i need to make my own.
Here is the projection function they do have: https://docs.unity3d.com/ScriptReference/Vector3.Project.html
Attachments
Last edited: