So I have this code
and somehow, the rotation is not working fine. Here’s the screen shoot
Transform form = Instantiate(bulletPrefab, shootLocation.transform.position, shootLocation.transform.rotation);
Do you guys have any idea why is this happening?. Ty
You need to rotate your bullet prefab by ±90 degrees. Alternatively you could rotate your “FirePoint” by ±90 degrees instead. One final option is to re-import your sprite facing the desired direction. Which one you chose will depend on how your game is set up. Since your bullet is not selected, I can’t tell if your bullet prefab is facing the right way but the sprite is messed up or vice versa.