1
vote
1answer
858 views

Rotate image around a specified origin

I'm trying to rotate my Turret.png (small Gunhead with a laser in front) towards the mouses location on the screen. I tried just using my method for rotating projectiles towards the next step on their ...
3
votes
3answers
1k views

How do I calculate the exit vectors of colliding projectiles?

I'm trying to create projectiles which bounce/ricochet off one another when they collide in mid-air. All projectiles are spherical and have identical size, mass, and speed. Each has two vectors: one ...