Fixed dot product problem!!!
Finally! I solved my dot product problem! Because it only goes up to 180 degrees there are 2 posible answers, one is wrong
All I do is calculate the distance between the projectile, with the sin and cos of the angle added to it, and the target
Which ever angle was the closest IS TEH WINNAR!!
thanks to all the guys here who helped me with dot products, and I hope you find my solution usefull
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement