How to make an arrow follow natural arc?

Hi all,

I am an absolute beginner. I managed to create an arrow with a Rigidbody2D that I want to shoot from a bow by instantiating it in the update by pressing SPACE

void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
Instantiate(arrow, transform.position, transform.rotation);
}
}

This works fine. However I cannot succeed in adding a launching force and let it fly a natural curve.
I tried
arrow.GetComponent().AddForce(Vector2.right * launchForce);
after the instantiate-line but it cause the arrow to drop down. I serialized the LaunchForce but nothing happens.

What am I doing wrong?

thanks in advance for your knowledge…

Can you provide the full Update() function when you had the AddForce in there? Also, what is your launchForce set to?

Hi @StellaFerox

Please use code tags when posting code. You can edit your post with edit button.

“…but it cause the arrow to drop down.”

Are you sure you add enough force?

There also exists two different force modes which you can add as AddForce’s second paramater.

Also, you could as well set the Rigidbody2d’s velocity, so it starts with a certain velocity.