Unity3d vector and matrix operations
- by brandon
I have the following three vectors:
posA: (1,2,3)
normal: (0,1,0)
offset: (2,3,1)
I want to get the vector representing the position which is offset in the direction of the normal from posA.
I know how to do this by cheating (not using matrix operations):
Vector3 result = new Vector3(posA.x + normal.x*offset.x
…