So at the moment i am working on a 2d top down shooter, kind of like hotline miami and i was wondering on how to implement a bullet case ejection system so that the bullets fly off the gun and drop to the ground.
I am working with java/slick2d and can't wrap my head around how to implement this.
I already read about working with sinus and cosinus but that didnt do the trick for me. I am also working with rotations and want to align the bullet shells with the rotation of my player AND manipulate the direction so that a bullet can fly in a general direction and randomize its path on the ejection.
I really hope that somebody can help me.
Thanks in advance!
I want the shells to fly like this: