Hello - I have a problem, in my 2D scene facing the 'back' perspective, I have two physics objects in a scene, one is a ship and another is a ball. When the ship collides with the ball, the ball sets its position every frame to align in front of the ship. The ball also rotates in the direction of the ship, so both objects are 'looking' in the same direction.
My problem comes when I want to 'shoot' the ball in the direction which the ship is facing. In the add force action, I don't know how to do this, I have add impulse 200 on X and the vector is the ship rotation but the ball seems to fly off in the wrong direction sometimes it will be correct and shoot ahead of the ship but other times it will just fly off in a completely different direction to what was intended.
If anyone can lend a hand it would be very much appreciated.
Thanks