I want to have arrows spawn in front of my character instead of appearing inside of him. I’ve looked at some solutions that worked for other people but I couldn’t find anything that works for me.
void Shoot()
{
animator.SetBool("Attacking", true);
for (int i = 0; i < arrowsShot; i++)
{
GameObject bullet = Instantiate(bulletPrefab, firePoint.position, firePoint.rotation);
Rigidbody2D rb = bullet.GetComponent<Rigidbody2D>();
rb.AddForce(firePoint.up * bulletForce, ForceMode2D.Impulse);
}
}