[Unity, beginner. Help me.]Fire five parabolic lines in the desired random direction.
I've got five places that I've randomly designated. I want to fire a missile with a parabola.
But it doesn't work the way me want it to.
Video & Code : https://www.youtube.com/watch?v=_8dK8mbeWuE
Comment
Answer by Bunny83 · Jun 02, 2019 at 06:41 PM
Well, I did not go through all your code, but an apparent issue is that you used Vector3.Angle to determine the direction of your velocity. Vector3.Angle is not a signed angle. So 30° to the left or right are both just 30". You may want to use the relatively new Vector3.SignedAngle instead. Also make sure you are not 180° off or have an inverted angle.