Help with Acceleration of Rotating Object

I am accelerating and moving my player with the following code:

And my player accelerates up & down the screen with my particle effect below it.

However, when the player is rotated I want the acceleration to be in the direction it is pointing and the particle effect to appear at the rotated bottom of the player.

Any help would be greatly appreciated.

Could you draw a diagram of what you want to see?

If I hit the accelerator I want the player to fly in the direction he is facing rather than always Up/North.

you should use Vector3.forward in order to move to the direction where the plane is facing, also you could probably instantiate the smoke in the Vector3.back

Privacy & Terms