Hey all, here’s my situation: I want the player to be able to shoot a crossbow bolt and have the bolt object not just move forward along an axis (in my case, the x axis), but also trace an arc through the air like a real arrow would (taking into account how high up you aimed when you shot your arrow, how much force, etc…)
I have lots working so far including letting the player increase or decrease the angle and force one degree and/or unit per click of a corresponding GUI Button.
I can also fire the bolt using a “Fire” GUI Button on screen.
My problem is that even if I aim the bolt “up” so the tip is pointing up at 30 degrees, when I fire the bolt it just shoots straight forward along its x axis which looks pretty silly when your projectile is pointing up at 30 degrees!
I have gravity enabled and all that jazz, and I’ve searched for others with a similar problem but have found nothing pertinent (that I can tell).
How would I tell my program not to just shoot the bolt straight forward, but forward and UP if the bolt tip is aiming up at a certain angle?
And the second natural question, how would I tell the program to auto rotate the bolt tip to face down as the bolt starts to fall along the y axis due to gravity’s pull?
Thanks in advance for any help.