Quick question
I have a player object that moves and rotates (space ship behavior). When the object is moving and then rotates and fires while moving how do i get the bullets movement to match the player objects movement?
In the example picture below
The player is moving to the right as shown by the red arrow
The player has rotated to the left to fire. When it fires its bullet it follows the green line
How do i get the bullet to fire along the blue line (gaining the same directional movement(red arrow) as the player)