Shooting in a Projectile for Archery game

Hello All…i am new to Unity. I am working on a game in which player shoots an arrow in the air at some angle and with fixed velocity. I am not able to simulate this in Unity. Every time I shoot, the arrow goes in the straight line instead of following projectile. Can anyone please help me with this?

The Rigidbody manual page may be helpful. Do you have a rigidbody attached to the arrow? If not, it won’t be affected by Unity’s physics engine.

If you want a Rigidbody to fall with gravity, make sure that “use gravity” is enabled in its inspector settings. If you want something a little bit fancier, the constant force component can be helpful. If you want to get fancier, still, you can always code up a custom component to manage to acceleration and velocity any which way you like.

Check this out…

Hi to all my first course published on Udemy.com

2D Archery Game In Unity3d
https://www.udemy.com/2d-archery-game-in-unity-3d/?couponCode=MYFIRSTLESSON

For the first 200 people we consider 36% discount.
Dicsount Code: MYFIRSTLESSON

In the next month other chapters wil be published