- Home /
change angle of vector3
I have a calculated vector3 that I got from this answer: http://answers.unity3d.com/questions/148399/shooting-a-cannonball.html
It fires a canon ball at a target. What I want to do is change the angle of the vector so it fires off at the same distance and altitude but forward in the x direction based on my object.
So basically, how do I adjust the horizontal angle of a vector and retain the other coordinates?
Comment
Your answer
Follow this Question
Related Questions
Angle between player and rocket targetting player. 1 Answer
Vector3.Angle() Never Reaching 0 1 Answer
Angle between vectors - calculation 2 Answers
Get Direction from 2 Vectors - and Apply to Transform 0 Answers
How do I find the angle between the players forward vector and the mouse position? 1 Answer