I am experimenting with a simple 2D sidescroller game in which the player can shoot arrows. I have made plenty of projectiles before, but for some reason I cannot figure this one out. I absolutely cannot figure out how to make the arrow projectile have the correct rotation when it is shot. It fires in the correct direction, but the arrow fires upright, with the tip pointing down, 90 degrees from the travel direction, instead of pointing forward with velocity.
I have tried:
- Rotating the capsule collision and paper flipbook. This works if I have a scene component as root for my projectile, but I need the capsule collision to be root for collisions to work properly.
- Setting the initial velocity on a different axis (arrow no longer shoots in correct direction)
- Rotating the arrow 90 degrees, either in its own begin play or the transform on spawn. This has no effect.