zaterdag 18 februari 2017

Bullet trajectory

Today I have only been working on bullet trajectory. I found the formula for the desired shoot angle on Wikipedia:
I also got some help from this forum: http://answers.unity3d.com/questions/49195/trajectory-of-a-projectile-formula-does-anyone-kno.html

Here is my bullet script:

Unfortunately the result first looked like this(given angle: -16.36):

But later with some critical thinking, I found the problem! I had two variables the wrong way around, wasted so much time on this....
Happy it's working now though!

Geen opmerkingen:

Een reactie posten