Comments and answers for "Rotating Vector3, linecast"
http://answers.unity.com/questions/1306635/rotating-vector3-linecast.html
The latest comments and answers for the question "Rotating Vector3, linecast"Comment by Matthewek on Matthewek's answer
http://answers.unity.com/comments/1306640/view.html
Thank you very much, indeed I did not think about it this way, once again thanks.Tue, 31 Jan 2017 14:38:50 GMTMatthewekAnswer by Hellium
http://answers.unity.com/answers/1306637/view.html
In Vector Arithmetic, a sum of two vectors results in a **point**, not a vector while the difference between two **points** results in a vector. Here, you need to rotate a directional vector, thus, simply do the following :
void FixedUpdate()
{
Vector3 rotatedVector = transform.rotation * new Vector3(1, 0, 0);
Debug.DrawLine( transform.position, transform.position + rotatedVector );
}Tue, 31 Jan 2017 14:35:55 GMTHellium