Unity3D/Problems
Vector3.Angle
일등하이
2016. 12. 3. 04:13
반응형
it is quite simpe if you know the conditions clearly.
This image illustrates it (i am using x/z axis):
the code would be like:
Code (csharp):
so what we do here is set the Vector A along the z-axis and the Vector B along the x/z plane.
The important thing to understand is that (if i'm not mixed up) Vector3.Angle always calculates the angle from the Vector3.zero to the actual Points.
반응형